thewird
08-29-2006, 07:19 PM
How would I find the most top frame on a page using javascript? For example, someone iframes my site within another iframe. I want to know the upper most frame's URL. How would I do that? Thanks.
thewird
thewird
|
||||
How to find the top frame?thewird 08-29-2006, 07:19 PM How would I find the most top frame on a page using javascript? For example, someone iframes my site within another iframe. I want to know the upper most frame's URL. How would I do that? Thanks. thewird Kor 08-29-2006, 08:58 PM try top.frames[0] thewird 08-29-2006, 09:20 PM I get [object Window] or [object] as the variable. I need to find the URL of the topframe. My current code is as follows... var TopFrame = (document.top == document.self); if (!TopFrame) { TopFrame = true; } else { TopFrame = top.frames[0]; } thewird thewird 08-30-2006, 04:22 AM Anyone? thewird thewird 08-31-2006, 08:51 PM I haven't been able to figure it out. Could anyone help me? thewird |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum