How to open a new window or tab via javascript in windows phone 7 browser

前端 未结 3 1951
小鲜肉
小鲜肉 2020-12-06 01:48

Is it possible to open a new window or tab via javascript in Windows Phone 7 browser?

window.open does not appear to be suppor

3条回答
  •  情书的邮戳
    2020-12-06 02:14

    On Windows Phone 7 this is not possible programmatically. It's all in the users hand.

    To cite a 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."

提交回复
热议问题