How to make the favicon appear in a new window?

后端 未结 7 1640
无人共我
无人共我 2021-01-17 22:17

I\'m opening a new window into which I\'m injecting HTML for both the body and the head. The problem is in the head section: the HTML includes both the title and the favicon

7条回答
  •  半阙折子戏
    2021-01-17 23:02

    here's an answer which i think would help you

    html :

    Click me
    

    javaScript - jQuery (actually)

    $('#link').click(function(){
      var goto = window.open('http://stackoverflow.com/questions/40177033/how-to-make-the-favicon-appear-in-a-new-window');
    });
    

提交回复
热议问题