Forum Home
Press F1
 
Thread ID: 53987 2005-02-01 09:09:00 Body Onload Validation Altec_ (2950) Press F1
Post ID Timestamp Content User
320417 2005-02-01 09:09:00 I have an HTML page, that I need to put the following line in:


<body onload="window.resizeTo(660,612);">

But nomatter where I put it (in the head tag or body) the w3 vaidator rejects is. If I place it like this


<script language="javascript" type="text/javascript">
<body onload="window.resizeTo(660,612);">
</script>

It doesn't object but the windows does not resize.

Any way I can get this to work/ another method to resize a window?

Altec_
Altec_ (2950)
320418 2005-02-01 13:28:00 Something like so might do the trick


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"www.w3.org
<html xmlns="www.w3.org xml:lang="en">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">
function resize_window()
{
window.resizeTo(660,612)
}
</script>
</head>
<body onload="resize_window()">
</body>
</html>
sal (67)
1