Hello! quick question..... I need to kow how to pass a variable to a function such as......
function test(){
var my_var=;
alert(my_var)
}
<a href=javascript:test();>TEST</a>
can i define the value of my_var in the link somehow?
maybe like this <a href=javascript:test()?my_var="test var">
so the alert box will appear with the value"test var"
thanks guys your all great!
function test(){
var my_var=;
alert(my_var)
}
<a href=javascript:test();>TEST</a>
can i define the value of my_var in the link somehow?
maybe like this <a href=javascript:test()?my_var="test var">
so the alert box will appear with the value"test var"
thanks guys your all great!