The following code works just fine in IE6, but in Safari it's ignored. Is there a way to resize an applet after it's loaded in Safari?
Thanks in advance.
Thanks in advance.
Code:
<html>
<head>
<title>Viewer</title>
</head>
<script language="JavaScript">
function resizeGrid()
{ /* Make the applet fit the window */
if(document.myApplet != null)
{ document.myApplet.width = document.body.clientWidth;
document.myApplet.height = document.body.clientHeight;
}
}
function init()
{ resizeGrid();
}
</script>
<body onResize="resizeGrid();" onload="init();">
<applet code="wviewer.ItemViewer" codebase="/customviewer/" name="myApplet" id="myApplet" width="625" height="325" mayscript>
</applet>
</body>
</html>