Hey GUys
I am new to javascript
and I need help in writing an onclick event to open up a hyper link the following code is part of a script that I am using and i would like to had a function where when you click on a link it will open this is just one line of the code. With in this line of code there is an onclick Event I would like to have it set up so that when you click on this link it will take me to cnet.com please let me know if you can help or not or if you need the whole script. Thank you
html+='<TR><TD STYLE="border:1pt solid #CCCCCC" ID="i10" ONMOUSEOVER="document.all.i10.style.background=\'#CFD6E8\';document.all.i10.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.i10.style.background=\'#CCCCCC\';document.all.i10.style.border=\'1pt solid #CCCCCC\';" ONCLICK="window.location=" SRC="menuzoom.gif" WIDTH="12" HEIGHT="12" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="absmiddle"> Link1</TD></TR>';
I am new to javascript
and I need help in writing an onclick event to open up a hyper link the following code is part of a script that I am using and i would like to had a function where when you click on a link it will open this is just one line of the code. With in this line of code there is an onclick Event I would like to have it set up so that when you click on this link it will take me to cnet.com please let me know if you can help or not or if you need the whole script. Thank you
html+='<TR><TD STYLE="border:1pt solid #CCCCCC" ID="i10" ONMOUSEOVER="document.all.i10.style.background=\'#CFD6E8\';document.all.i10.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.i10.style.background=\'#CCCCCC\';document.all.i10.style.border=\'1pt solid #CCCCCC\';" ONCLICK="window.location=" SRC="menuzoom.gif" WIDTH="12" HEIGHT="12" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="absmiddle"> Link1</TD></TR>';