We can't expect all our users to be net savvy. There might be people who are working on DTP sorts of things
who would have visited our site(s). Those people will not be well versed in using the Mouse, in these cases my code
will be handy.
<!--
'********************************************************
'
' Author : M. Vadivel
' Company: Agenda Netmarketing Pvt Ltd.,
' Website: www.3rdagenda.com
' Mail-Id: vadivel@3rdagenda.com,
' velias_111@hotmail.com
'
'********************************************************
-->
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE>Demo of HotKey</TITLE>
<style>
u {text-decoration:none}
</style>
<SCRIPT LANGUAGE=javascript>
<!--
var isAltKeyPressed = false;
function hotkey(eventname)
{
if(eventname.keyCode == 18)
{
isAltKeyPressed = true;
}
if(eventname.keyCode == 83 && isAltKeyPressed)
{
saveMe();
}
}
function saveMe()
{
alert("Happy New Year.....");
}
//-->
</SCRIPT>
</HEAD>
<BODY onkeydown='hotkey(event)' oncontextmenu="alert('You are not authorized to see the code');return false">
<h4>Use Alt + S to activate the link....U can also click on it</h4>
<font face="arial" size="2">
<a href="javascript:void(0)" onClick="saveMe()">s<u>ave</u></a>
</font>
</BODY>
</HTML>