BUG: IE has bug with returning window.screenTop and window.screenLeft

J

Jeff Cleath

Look at the included two html files to show how there is a
bug within IE if an IFRAME is contained within tables and
other html elements.
PAGE 1 IS CONTAINED WITHIN THE IFRAME TO SHOW A POPUP AT
THE TOP LEFT CORNER OF THE IFRAME
<html>
<head>
<script language="javascript">
var w;
w = this.window.createPopup();
window.w.show(window.screenLeft, window.screenTop,100,100);
var d = w.document;
d.open("text/plain", "replace");
d.write("ffff");
d.close();
//alert("LEFT:" + window.screenLeft + " " + "TOP:" +
window.screenTop);
</script>
</head>
<body></body>
</html>

THIS PAGE CONTAINS THE IFRAME
<html>
<body>
<table>
<tr>
<td>alskdjf</td>
</tr>
<tr>
<td>alskdjf</td>
</tr>
<tr>
<td>alskdjf</td>
</tr>
<tr>
<td><iframe
src="ErrorPage.htm"></iframe></td>
</tr>
</table>
</body>
</html>

IF YOU REMOVE THE TABLE AROUND THE IFRAME OR MOVE THE ROW
CONTAINING THE IFRAME TO THE FIRST ROW OF THE TABLE, THEN
THE POPUP WILL DISPLAY IN THE CORRECT POSITION.

Jeff Cleath
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top