Results 1 to 5 of 5
  1. #1

    Java script to close browser with no alert

    I am looking for a Java script that would close the browser with no alert.
    I used to have one but no sure where it is.....
    I know I need to open a window that closes itself. but not sure.
    the user needs to click on a link that says for example close browser and then it would shut it.
    I cannot find one on the net that does it
    Web Hosting Review - Real Reviews by Real People Submit your company and get a link to your site, Read Reviews GET YOUR Voice HEARD and REVIEW your HOST NOW!!! Check out our IT Blog Tips & Tricks

  2. #2
    have you tried going to youngcoders ?

  3. #3
    Join Date
    Apr 2005
    Posts
    1,711
    <script>
    function closeWindow() { self.opener=this; self.close(); }
    </script>
    <a href="#" onClick="javascript:closeWindow();">Close Window</a>
    Zach E. - Kualowww.kualo.com
    Shared Web Hosting, Reseller Hosting, Cloud VPS & Dedicated Servers
    UK: 0800 138 3235 ❘ USA: 1-800-995-8256

  4. #4
    Join Date
    Mar 2004
    Location
    USA
    Posts
    4,342
    Code:
    window.close();
    It won't display a message if you are the opener of the window

    Peace,
    Testing 1.. Testing 1..2.. Testing 1..2..3...

  5. #5
    onclick="self.close()"

    Q...

Posting Permissions

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