I want to pop-up as page preview in one button click of my current html page. But i want to use only Body Elements of current page & Header Elements from other resources.
My Question is:
Could it possible to edit the header (< head>) ele开发者_开发知识库ments OR just use Header (< head>) elements from other resources. if yes, How ?
What is "other resource"? Other page or what?
To get ONLY the head element or body, you can do it like this:
    // head of the element
    var headElement = document.head;
    // body
    var bodyElement = document.body;
But it only works for current document. I hope I get it right (because I don't really understand what "other resource" mean).
Hope it helps.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论