Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Window.open vs <a target="">
Forum Updated to NodeBB v4.3 + New Features

Window.open vs <a target="">

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 1 Posters 1.1k 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

    I am developing a browser, it will have support for tabs.

    But I have a difficulty, "QWebPage::createWindow" does not differentiate "window.open" to "<a href="" targert="">".

    eg.:

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

    and

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

    are considered the same by @QWebPage::createWindow@

    How to differentiate both?

    When window.open I will create a window and when anchors will add a new tab.
    

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

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

      Solution:
      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