quantass
January 11th, 2005, 10:23 AM
In Javascript ...
Can someone show me how to SHIFT+Click LButton on a hyperlink to have it now redirect itself to search google instead of following where the link was originally going?
Here is an example link i have in my code. Notice that i am already using javascript for my hyperlinking...when the user does a normal lbutton click it does a "post" to mytestwebsite.com which is what i want ... BUT i want to add the functionality that if the user holds down the SHIFT key while clicking it doesnt go to my site anymore it instead calls Google with the query of "explorer.exe":
<form method="post" name="x" action="http://mytestwebsite.com/sript.htm" id="a"><input id="b" type="hidden" name="query" value=""></form>
<a href="#" id="aa" onclick="document.a.b.value='explorer.exe';a.submit();aa.linkColor='#00FF00';return false;">Spyware Check on Explorer.exe</a>
How would i do this?
THanks
Can someone show me how to SHIFT+Click LButton on a hyperlink to have it now redirect itself to search google instead of following where the link was originally going?
Here is an example link i have in my code. Notice that i am already using javascript for my hyperlinking...when the user does a normal lbutton click it does a "post" to mytestwebsite.com which is what i want ... BUT i want to add the functionality that if the user holds down the SHIFT key while clicking it doesnt go to my site anymore it instead calls Google with the query of "explorer.exe":
<form method="post" name="x" action="http://mytestwebsite.com/sript.htm" id="a"><input id="b" type="hidden" name="query" value=""></form>
<a href="#" id="aa" onclick="document.a.b.value='explorer.exe';a.submit();aa.linkColor='#00FF00';return false;">Spyware Check on Explorer.exe</a>
How would i do this?
THanks