SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Jan 2005
    Location
    uk colchester
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    close window wont close in FF

    I am useing the following code

    <form>
    <input type="button" value="Close Window" onClick="window.close()">
    </form>

    This works ok in the IE6 but not in FF, javascript is the language a know nothing about so can anyone helkp me with how to get this to work with FF.

    Cheers

  2. #2
    SitePoint Zealot
    Join Date
    Jan 2005
    Location
    uk colchester
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have sorted my problem, not sure why but when previewed in the browser from the F12 in dreamweaver the button wont work in FF, however when viewed from straight from the browser all works fine.

  3. #3
    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)
    Check the JavaScript console. It should have outputted a warning when it didn't close the window.


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
  •