Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 救救我 “的window.open”
Forum Updated to NodeBB v4.3 + New Features

救救我 “的window.open”

Scheduled Pinned Locked Moved Chinese
2 Posts 1 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    brcontainer
    wrote on last edited by
    #1

    我正在开发一个Web浏览器,它将为标签的支持。

    但我有一个困难,“QWebPage:: CreateWindow的”没有区别“的window.open”,从“<a href="" targert="">”。

    例子:

    @var params = "menubar=no,location=no,resizable=no";
    window.open("http://www.cnn.com/", "_blank", params);@

    和

    @<a href="http://www.cnn.com/" target="_blank">@

    由“QWebPage:: CreateWindow的”考虑同样的事情

    如何区分两者?

    当“链接/锚”,浏览器将添加一个新的标签,
    当“的window.open”,浏览器会打开一个新窗口。

    请帮助。

    原谅我写不好,我不说话这种语言。

    QT project: https://github.com/brcontainer/qt-helper

    1 Reply Last reply
    0
    • B Offline
      B Offline
      brcontainer
      wrote on last edited by
      #2

      解
      http://stackoverflow.com/a/21925144/1518921

      QT project: https://github.com/brcontainer/qt-helper

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved