nice work rsnake.
i have been trying something similar for sometime with no luck (except the following) which
> Waits for a keydown event and traps it
> Set focus to the link i want clicked
> Converts the keydown keycode into a click (enter)
> returns the keycode to the browser
which then "clicks" the link for me.
POC
<html>
<head>
<script language="JavaScript">
document.onkeydown = ClickIt
function ClickIt(e) {
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
{
document.getElementById("linkage").focus();
event.keyCode=13;
return event.keyCode;
}
}
</script>
</head>
<body>
<a href="http://ha.ckers.org" id="linkage">Hackers</a></div>
</body>
</html>
I have a couple more ideas up my sleeve but that is for another day when i have a better POC
----------
'Just because you got the bacon, lettuce, and tomato don't mean I'm gonna give you my toast.'