www.webdeveloper.com
Results 1 to 2 of 2

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

  1. #1
    Join Date
    Jul 2013
    Posts
    4

    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...:
    Code:
    <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
    Location
    Somewhere behind your screen
    Posts
    1,633
    watch the quote marks

    Code:
    <input ="button" onclick= "alert('thanks for closing me'); window.close();">
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

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