I want to pass some variables from one page to the other. Question is, why the following won't work?
sq1 = value;
<img src="http://www.teconic.com/graphics/blue_ball.jpg" alt="blue" onmouseDown= " assignVar('1'); " />
document.write('<a href="displayVar.php?sq1='+sq1+'">another page</a>');
The value of sq1 will remain undefined.
It is updating actually, but why it stays the same in query string?
Thank you for reading