<html> | |
<head> | |
<title>This page steals the focus</title> | |
</head> | |
<body> | |
<script language="javascript" type="text/javascript"> | |
<!-- | |
function stealFocus() { | |
var textField = document.getElementById("text_edit"); | |
textField.focus(); | |
} | |
// --> | |
</script> | |
<h1>Welcome to Focus Taker!</h1> | |
<form href="nowhere.html"> | |
<input name="SearchText" type="text" id="text_edit"></input> | |
<input name="SearchButton" type="button" value="Search" onclick="popitup('http://www.google.com');"></input> | |
</form> | |
<br> | |
</html> |