Hi,
Is it possible to get the values of variable from a link and then pass it into javascript?
for instance from the link here,
Code:
<a href="incl_layouts/form_sign_up.php?w=500&h=100" class="load">Sign up</a>
w=500 and h=100 are the values I want to pass into the function click() below,
Code:
$(".load").click(function(){
var path = $(this).attr("href");
var width = w;
var height = h;
});
Many thanks,
Lau