|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello all!
I got this simple but annoying problem in IE. All i want is to popup a window next to another one i just opened. In NN, i can do it with the window.screenX and screenY properties, but it doesn't work in IE... Please help me with this... Here is my code for now: -- Begin code function popup(strURL) { var str = "height=300,innerHeight=300"; str += ",width=300,innerWidth=300"; var ah,aw; if (!ie) { # Works ah = window.screenY-22; aw = window.screenX+401; } else { # Doesn't work ah = window.pageY-22; aw = window.pageX+401; } str += ",left=" + aw + ",screenX=" + aw; str += ",top=" + ah + ",screenY=" + ah; str += "menubar=no,toolbar=no,status=no,scrollbars=yes,resizeable"; win = window.open("", "detail", str); win.document.open("text/html", "replace"); win.document.write("<html><body><img src=" + strURL + "></body></html>"); win.document.close(); } -- End code Thanks in advance! |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Get window offset in IE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|