开发者

Dynamically creating and loading a dynamic page into a browser window

开发者 https://www.devze.com 2023-03-27 13:02 出处:网络
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 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 window

I 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)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号