gpt4 book ai didi

javascript - 使用 window.open 自定义弹出窗口

转载 作者:行者123 更新时间:2023-11-28 14:41:37 25 4
gpt4 key购买 nike

我需要在单击页面上的超链接时打开多个弹出窗口,因此我必须使用 Window.open 而不是 showModalDialog 函数。

但我看到使用 Window.open 的外观不够好。(基本上我想禁用 url 窗口并在那里添加我所有的东西)

请告诉我 window.open 是否可行??

或者请建议我在这种情况下最好的方法是什么??

最佳答案

您可以使用 window.open 的第三个参数指定您想要在弹出窗口中显示的功能:

strWindowFeatures
Optional parameter. This parameter is the string which lists the requested window features (window functionalities and toolbars) of the new browser window. This string parameter must not contain any blank space. Each requested window feature must be separated by a comma inside the character string.

我链接到的页面甚至有一个图表可以帮助您区分哪些功能是哪些。

关于javascript - 使用 window.open 自定义弹出窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5814316/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com