javascript - how to pop out an iframe from document? -


i included iframe in document open in window using "window.open" without changing context in iframe.

is possible open existing iframe in window without changing context?

try this:

 var w = window.open(null,'test',[800,600]);  $(w.document.body).append($('iframe').contents().find('html')); 

basically opening new window title 'test' , specific width , height , append content iframe in new opened window.

you need have permission iframe (it needs on own domain).


Comments

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -