vija...@gmail.com wrote:
Hi Joakim,
I tried adding body style="height:100%;width:100%" to the body tag.
Now, it is always displaying scroll bars inside the explorer. It is
also not truly encompassing the whole browser window. It's 0,0
coordinates seem to be startting from the point text box appears. The
thin margins on the top left are not capturing the event.
Is there some way by which I can add the eventhandler to the window
itself and not just body? I think I have seen such pages where they
do such stuff.
Thankyou for helping...
Try:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-GB">
<head>
<title>Window Alert</title>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<script type="text/javascript">
window.onmousedown = function() { alert("This will get really
irritating."); };
</script>
</head>
<body>
</body>
</html>