Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个网页,上面有一个按钮。当用户单击按钮时,我想调用一个新的浏览器选项卡并传递一些将在该窗口中呈现的 HTML 文本。这可以通过 Javascript 实现吗?如果可以,如何实现?
谢谢卡比尔
尽管@BenjaminGruenbaum 可能有一点您应该考虑.. 您的问题的答案如下:
var newWindow = window.open("","Test","width=300,height=300,scrollbars=1,resizable=1"); newWindow.document.write('Some string');