: I have a table that has a hyperlink in a cell. How do I set focus to that hyperlink so that when the user hits the enter key the selected event is fired?
:
Hi
<html>
<head>
<title>Teste1</title>
<script language="JavaScript">
function HandleClick()
{
Link1.focus();
}
</script>
</head>
<body>
<input type="button" value="Click!" onclick="HandleClick();" />
<a id="Link1" href="http://www.programmersheaven.com/">ProgrammersHeaven</a>
</body>
</html>
Hope it helps.