Hello,
I'm in the process of developing my website, and am pretty much a newbie to javascript. I am working on a part where when the reader clicks with the left button on an image it opens a new window. Is there a way that you can do this also with the right click? I would like the left click to go to one page and the right click to go to a different.
Thanks,
Charlie
Here is my script for the left click.
-----------------------------------
<SCRIPT language="JavaScript">
<!--hide
function originalshirt(){
window.open('page.htm','Close Up','width=534,height=469');
}
//-->
</SCRIPT>
... then the link
<a href="Close Up" onClick="originalshirt();return false;">Image</a>
I'm in the process of developing my website, and am pretty much a newbie to javascript. I am working on a part where when the reader clicks with the left button on an image it opens a new window. Is there a way that you can do this also with the right click? I would like the left click to go to one page and the right click to go to a different.
Thanks,
Charlie
Here is my script for the left click.
-----------------------------------
<SCRIPT language="JavaScript">
<!--hide
function originalshirt(){
window.open('page.htm','Close Up','width=534,height=469');
}
//-->
</SCRIPT>
... then the link
<a href="Close Up" onClick="originalshirt();return false;">Image</a>