SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast codlib's Avatar
    Join Date
    Jan 2007
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Closing window using javascript?

    Hi friends,

    i have a problem with window.close. i want to close a window while clicking
    a button. i have written code for closing the window. it is working perfectly in
    pop up windows.

    i want to run this script in parent window. i.e i want to close the window while clicking a button.

    it is working in IE and showing a warning. but not working in firefox.

    can any one tell me an alternative solution

    thanks,
    codlib
    <snip>
    Last edited by Jelena; May 18, 2007 at 02:51. Reason: no self-promo urls in posts please

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is not really possible (...), you can only close windows that you yourself opened via script. Firefox does actually give you a warning, check the Error Console.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •