Results 1 to 2 of 2

Thread: A button that alerts then closes browser?????????

  1. #1
    Join Date
    Jul 2013

    Question A button that alerts then closes browser?????????

    I want a button that first says something like thank you for closing or like that and then after they(the user) clicks OK then it closes that current browser this is what I've been getting from a lot of forums lately...:
    <input ="button" onclick= "alert('thanks for closing me')"; window.close();>
    and i don't know whats wrong with this code please tell me as soon as possible

  2. #2
    Join Date
    May 2006
    Somewhere behind your screen
    watch the quote marks

    <input ="button" onclick= "alert('thanks for closing me'); window.close();">

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles