D
Den
Hi, I have one simple question:
Code:
------------
<html>
<body>
<input type="button" onclick="openWindow('http://www.google.com', 'Google')"
value="Google">
</body>
<script language="JavaScript">
function openWindow(adress,name, height, width) {
window.open(adress,name,"height="+height+", width="+width);
}
</script>
</html>
------------
This is the most simple new-window script. But I discovered something:
In IE6:
When page is uploaded on webserver, script is opening one very small window
(c. 120x160) after the click on gooogle button. That is logical, as there
is no 'height' and 'width' values. But when I run this page from my desktop,
it opens one big c. 1024x768 window (my monitor resolution is 1280x1024).
Why is that?
Firefox opens the same size window in both cases (c. 900x1000). Netscape
opens identical windows too, just smaller (c. 120x130).
Den
Code:
------------
<html>
<body>
<input type="button" onclick="openWindow('http://www.google.com', 'Google')"
value="Google">
</body>
<script language="JavaScript">
function openWindow(adress,name, height, width) {
window.open(adress,name,"height="+height+", width="+width);
}
</script>
</html>
------------
This is the most simple new-window script. But I discovered something:
In IE6:
When page is uploaded on webserver, script is opening one very small window
(c. 120x160) after the click on gooogle button. That is logical, as there
is no 'height' and 'width' values. But when I run this page from my desktop,
it opens one big c. 1024x768 window (my monitor resolution is 1280x1024).
Why is that?
Firefox opens the same size window in both cases (c. 900x1000). Netscape
opens identical windows too, just smaller (c. 120x130).
Den