Solved

Stupid HTML question:  possible for user to uncheck radio button?

Posted on 2003-11-14
6
2,138 Views
Last Modified: 2008-03-03
Chalk this one up as a true brain-fart moment...but as they say in "Dirty Harry," I needs to know.... :)

Is it possible for a user to uncheck a radio button once it's been checked, without using JavaScript?  I could have sworn I was able to do this by using a couple keys on my keyboard, but I'm either remembering incorrectly or can't get the combination of keys/mouseclicks to work.  

I mocked up a page with a couple radio buttons and, sure enough, I can't seem to do it.  I tried the space bar; holding the shift key and then clicking it; hitting the delete key....nothing.  

If this is possible, please share the keyboard combination.  Thanks!
0
Comment
Question by:cacklebunny
6 Comments
 
LVL 33

Expert Comment

by:knightEknight
Comment Utility
perhaps by resetting the form ... or by reloading the page.

Add a reset button to the form:

<INPUT type="reset" name="btnReset" value="Reset" />
0
 
LVL 5

Accepted Solution

by:
M256 earned 50 total points
Comment Utility
Once it is checked on the page, it is not supposed to be possible to uncheck it except by checking another in the series.

However, if you are worried about a hacker doing something, it is possible.  Anybody can copy the html page to their computer, unselect the default (if you have one), change the action page of the form to your remote page, and submit it.

Matthew
0
 
LVL 2

Author Comment

by:cacklebunny
Comment Utility
M256:  No security concerns, this is just simple curiosity.   I seem to have recalled there was a way for the end-user to do it if they knew the right combination of keystrokes/mouseclicks.  I thought it was the spacebar but all that does is toggle the radio button from one choice to the other.  

I know the "reset" button will do it provided the designer actually places a reset button in the form.  I also know you can do it with JavaScript --but again, only if the designer provides this. For the sake of argument, assume that the form has neither a reset button nor a link that causes a JavaScript function to fire.

Thanks.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 5

Expert Comment

by:M256
Comment Utility
I cannot say absolutely, but I don't think it is possible with Internet Explorer.

Maybe a non-standard browser?

I found several places where people were trying to deselect radio buttons, but they were using JavaScript.
Example:
http://www-10.lotus.com/ldd/46dom.nsf/0/4c663084da65131685256d630072af1f?OpenDocument

Matthew
0
 
LVL 3

Expert Comment

by:superslamwich
Comment Utility
Here's a bookmarklet that will do it regardless of whether the designer provides a reset button:

javascript:for(i=0;i<document.forms.length;i++){document.forms[i].reset()}

{Slam}
0
 
LVL 2

Author Comment

by:cacklebunny
Comment Utility
M256:  

Are you saying IE is a standard browser? ;)

I think you're right in that it must be impossible without a reset button or JavaScript.  So unless someone posts otherwise soon, I'll be passing out the points to you.... "not possible" appears to be the right answer.

As far as other browsers, I've tried to uncheck it using Mozilla and also Netscape 7 and no luck.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
spacing 5 24
css, html 6 29
while loop in html mail format 5 32
HTML CSS 7 14
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

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

9 Experts available now in Live!

Get 1:1 Help Now