Solved

Popup when checkbox unselected

Posted on 2004-03-29
3
567 Views
Last Modified: 2008-02-01
How do I popup an alert when the user unselects a checkbox (ie. I don't want it to popup when the checkbox is selected).
0
Comment
Question by:objects
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
third earned 500 total points
Comment Utility

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script>
</script>
</head>
<body>
<form name="form1">
 <input type="checkbox" name="chk1" checked onclick="if(!this.checked)alert('Hello!')">
</form>
</body>
</html>
0
 
LVL 92

Author Comment

by:objects
Comment Utility
thanks :)
0
 
LVL 30

Expert Comment

by:third
Comment Utility
no prob. thanks also for the A!

;-)
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now