#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2005
    Posts
    52
    Rep Power
    10

    Can not close popup window on Firefox


    Using Firefox (ESP) 10 for SUSE Linux 11. When a popup window was opened (with a OK button on it), it could not be closed. I encountered two issues:

    1) In a javascript I used

    alert("100");

    then the popup window displayed: 100 OK.

    But when I clicked on the OK button, the popup failed to response such that it remained as it has been.


    2) Use window.location.href="http://www.google.com"; in a javascript, the google site could not be launched; However, window.open("http://www.google.com") could launch the site successfully.


    How could I solve the problems?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Location
    Hyderabad
    Posts
    4
    Rep Power
    0
    For your first issue can u please post the complete code to find the exact problem.
    And for your second one try
    window.parent.location="ur URL"
    rather than
    window.location=""
    And this works fine

IMN logo majestic logo threadwatch logo seochat tools logo