how to build url and request in jquery

This article gives some basic knowledge about how build URL for request using window.location.href property and window.open() method.

Jquery Script:
window.open

$('.click').click(function() {

id = $(this).data('id');

URL = '/get_response?id='+id;

window.open(URL)

});

window.location.href

$('.click').click(function() {

id = $(this).data('id');

URL = '/get_response?id='+id;

window.location.href = URL

});

location.href

$('.click').click(function() {

id = $(this).data('id');

URL = '/get_response?id='+id;

location.href = URL

});