javascript - 如何在 Windows Phone 7 浏览器中通过 javascript 打开新窗口或标签页

标签 javascript windows-phone-7 windows-phone

是否可以在 Windows Phone 7 浏览器中通过 javascript 打开新窗口或标签页?

window.open 似乎不受支持,target='_blank' 也不受支持。

我是不是漏掉了什么?这个基本功能在 iphone 和 android 上工作得很好。 关于如何使它在 Windows Phone 7 中工作的任何想法?

最佳答案

在 Windows Phone 7 上,这无法以编程方式实现。一切尽在用户手中。

引用 Microsoft employee :

"A user can open a link in a new Tab by tapping and holding the link to get the context menu but an anchor or scripts request to target a new window is ignored.

There are several reasons for this:

  • Cross-window communications are not supported.
  • Windows Phone only has one instance of the browser so new "windows" have to be opened as Tab's.
  • The browser experience is full screen so the user has no good visual cue that they have moved to a new Tab unless they explicity request it.
  • Navigating "back" in a new Tab exits the browser which would be confusing to the user if they did not know a new Tab was created."

关于javascript - 如何在 Windows Phone 7 浏览器中通过 javascript 打开新窗口或标签页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12201436/

相关文章:

Linq To SQL 查询用于计算相同记录

javascript - 如何突出显示标签内和标签外的文本?

windows-phone-7 - 应用程序未运行时的 Windows Phone 7 推送通知

javascript - 如何过滤对象数组并获取过滤后的对象值

iphone - 托管应用程序可以利用 PhoneGap API 吗?

windows - 如何从命令行运行 Windows Phone Store Cetrification Kit?

c# - WP8后退按钮后退两步

windows - 如何使用复选框单击将文本 block 中的文本从大写转换为小写?

javascript - 无法使用 Node.js SDK 下载文件夹内的 blob

javascript - MongoDB 无法将 $addToSet 应用于 Meteor JS 中的非数组