Open a new tab with custom HTML instead of a URL

后端 未结 3 542
情书的邮戳
情书的邮戳 2021-02-02 06:17

I\'m making a Greasemonkey script and would like to open a new tab which will not display a URL but some HTML that is part of the script. So basically I want to do something lik

3条回答
  •  渐次进展
    2021-02-02 07:03

    You can do this:

    var newWindow = window.open();

    and then do

    newWindow.document.write("ohai");

提交回复
热议问题