Turn iframe (external src) into a window?

F

Frank C

My site hosts a iframe whose initial src is an external website. I'd
like to be able to allow users to click a button and "pop out" that
iframe into its own window. I can of course just call window.open and
pass the initial src url... but if the user has navigated in the
iframe... I want the page he's currently on to show up in the new
window.

Whats the best way to do that ?

I've tried

location.href = iframeObj.contentWindow.location.href

But of course that doesn't seem to work due to browser security,
right?

Thanks,
frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top