javascript - window.open-标题标签未在 Chrome 中显示

标签 javascript asp.net google-chrome title window.open

我正在使用 window.open() 在 javascript 中打开新窗口

window.open("UpdateEmailRemainder.aspx", "", "width=630,height=500,status,resizable, top=" + top + ",left=" + left);

在UpdateEmailRemainder.aspx.cs中,我在服务器端代码中设置了标题标签:

this.Title = "Add Email Reminder";

但是,标题仍然是“无题”。 在 ie 中运行良好。

更新: 我

  • 尝试使用 HTML,但仍然无法正常工作
  • 如果多次刷新窗口,请打开开发者工具(f12)或打开页面源代码 - 标题就会出现。

最佳答案

您可以将标题写在 <title></title> 中HTML。

关于javascript - window.open-标题标签未在 Chrome 中显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10715445/

相关文章:

javascript - Angular:为第 3 方包(库)创建插件

javascript - 从 ionic 模板调用 Controller 中的 javascript 函数

c# - 执行阅读器 : CommandText property has not been initialized when using gridView

javascript - 将值作为数组从 html 传递到 javascript

c# - 回发后保留 Bootstrap 选项卡#

android - PWA Vue JS App 不显示在设备上

android - 禁用 android 的 chrome 下拉刷新功能

javascript - 如何将元素设置为默认状态(hide ())以及单击时(show())

java - localhost 在 Edge 中有效,但在 Chrome 中无效

javascript - 我想使用 Bootstrap Modal 按钮来返回点击事件的结果