Original Post
hey I've got a problem setting the width of a frame ("leftFrame") using javascript. this is my page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<SCRIPT LANGUAGE="javascript">
window.onload = function(){
width = document.frames[0].outerWidth;
//document.getElementByID("fs").setAttribute("cols","1000,*");
alert('Width = ' + width);
}
//</SCRIPT>
</head>
<!-- was 230 -->
<frameset cols="300,*" frameborder="no" border="0" framespacing="0" id="fs">
<frame src="left.php" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" />
<frame src="main.php" name="mainFrame" id="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html></pre>
You can see above what I've tried, but I can't seem to get it to work. Can anyone help?
cheers</code></pre>