<a href="javascript:size('x')">HTML Link</a>
I have the above code in my html file and want to pass on the variable 'x' to my javascript function 'size()'.
In my javascript file, I'm trying to use the variable as follows:
function size(id)
{
document.write("hi user number" + id);
}
I think my javascript part is correct and that my html syntax for sending the variable is wrong but having a bit of difficulty googling the correct syntax. Could someone help me here? thnx!