lmalinofsky
06-30-2010, 05:58 PM
Hello, I've tried this syntax which is supposed to allow a script
to be included inside a hyperlink, to be run onClick.
Code:
<a href="23" onClick="<script language = 'javascript'> sessvars.whichpage=3; </script>" <img> </img> </a>
The script simply will not run-- it is supposed to assign a value
to variable sessvars.whichpage, but when I get to my destination (node 23) its value shows as undefined.
Is there something wrong with my syntax?
Many thanks,
lmalinofsky
to be included inside a hyperlink, to be run onClick.
Code:
<a href="23" onClick="<script language = 'javascript'> sessvars.whichpage=3; </script>" <img> </img> </a>
The script simply will not run-- it is supposed to assign a value
to variable sessvars.whichpage, but when I get to my destination (node 23) its value shows as undefined.
Is there something wrong with my syntax?
Many thanks,
lmalinofsky