Dynamically creating and loading a dynamic page into a browser window
I hope I can explain what I would like to do a bit better than how I did with the ques开发者_StackOverflow中文版tion's title :)
I have a page whose content is dynamically generated. I would like to:
a- grab certain divs out of it,
b- wrap them with the markup of a standard html page (html, head, body, ...) c- load the result into a separate browser windowI can do a & b but not sure how to do c. Any thoughts on how this can be done would be appreciated.
thanks
You can open an "empty" html document in a popup window, and then add the elements to that document. So, rather than creating a document and then displaying it, display an empty shell, and then fill in the content.
Found this tutorial after some quick googling: http://www.openjs.com/tutorials/advanced_tutorial/popup.php
(just don't use global variables like they do)
精彩评论