Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    How to suppress javascript error/warning popup message window

    Qt WebKit
    2
    2
    2033
    Loading More Posts
    • 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
      aashish.lg last edited by

      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 Reply Quote 0
      • A
        akonradwesolutions last edited by

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post