I have written the following page and posted it to It works as planned in NN and IE5 but not IE4. Is there some obscure reason why IE4 doesn't like my onload event?.
[sig][/sig]
Code:
<html>
<head>
<title>test3</title>
<script language="javascript">
var temp;
function test()
{
if (navigator.appName == "Microsoft Internet Explorer")
{
document.tim.wild.value=""
document.tim.wild.focus();
}
if (navigator.appName == "Netscape" || navigator.appName == "netscape")
{
document.tim.wild.value=""
document.tim.wild.focus();
}
}
</script>
</head>
<body onload="javascript:test()">
14:22<br><br><br><br>
<form name="tim">
<input name="wild" size="10" maxlength="10" value="please wait">
</form>
<br>
<a href="test4.html">go forward</a>
<br><br>
This page displays 'please wait' in the UserID box until the page is fully loaded. It then clears the box and gives it focus enabling the user to type their ID No. in directly. To test, a blank page has been set up to navigate forward to and back from demonstrating that the field clears each time.
<br><br>
</body>
</html>