I have a lot of frames in a window.
In one of them i placed a IFRAME and change the source of my target page.
Now what I need, if i click a link on that page a DIV should be opening on the middle of the main window.
But if is opening at the middle of the iframe.
My JS code goes here.
[code=javascript]
var left = window.top.scre en.availWidth/2-250,top = 100;
[/code]
Now i am positioning the DIV at calculated LEFT and TOP position.
Please help me!!!
In one of them i placed a IFRAME and change the source of my target page.
Now what I need, if i click a link on that page a DIV should be opening on the middle of the main window.
But if is opening at the middle of the iframe.
My JS code goes here.
[code=javascript]
var left = window.top.scre en.availWidth/2-250,top = 100;
[/code]
Now i am positioning the DIV at calculated LEFT and TOP position.
Please help me!!!
Comment