Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: close tab

  1. #1
    New to the CF scene
    Join Date
    May 2012
    Location
    Kolkata
    Posts
    6
    Thanks
    3
    Thanked 0 Times in 0 Posts

    close tab

    how to close a tab in html or javascript

  2. #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    9,829
    Thanks
    6
    Thanked 1,162 Times in 1,133 Posts
    Impossible with HTML. With JavaScript you’d do window.close().

  3. #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    8,055
    Thanks
    2
    Thanked 808 Times in 797 Posts
    Of course it will only close if you opened it with JavaScript in the first place.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


 

Posting Permissions

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