Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getFrame() {
- var frame,
- frames = window.parent.document.getElementsByTagName("iframe");
- for (var i = 0; frame = frames[i]; ++i)
- if (frame.contentWindow === window)
- return frame;
- }
Add Comment
Please, Sign In to add comment