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. How to suppress javascript error/warning popup message window
QtWS25 Last Chance

How to suppress javascript error/warning popup message window

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 2.2k Views
  • 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.
  • A Offline
    A Offline
    aashish.lg
    wrote on last edited by
    #1

    I am using QWebKit to display the HTML pages which has some java scripts also.
    Sometime I am getting javascript error/warning pop up message window, I just wanted to suppress them, so that user will not get notified about these.
    Please suggest a way to do this.

    Regards
    Ashish

    1 Reply Last reply
    0
    • A Offline
      A Offline
      akonradwesolutions
      wrote on last edited by
      #2

      You can subclass [[Doc:QWebPage]] and reimplement the javaScriptAlert() method to suppress the message boxes triggered by alert().

      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