Results 1 to 1 of 1
Thread: two questions regarding iframes
Jul 11, 2004, 23:25 #1
- Join Date
- Mar 2004
- united states
- 0 Post(s)
- 0 Thread(s)
two questions regarding iframes
I got 2 questions regarding the usage of frames:
1) How can I calculate the exact top-left coordinate of an iframe which is located in the screen? The top-left coordinate needs to be in relation to the entire screen.
2) Consider the following: Page A opens a modal window B using window.showModalDialog(). Page B contains an IFrame C which is used to interact with the server.
When IFrame C reloads, I would like page B to close and page A to reload automaticaly.
I tried the following in C's body tag:
<body onload="parent.opener.location.reload(true); parent.close();">
I would appreciate any help in any of the questions.