View Full Version : Focus on radio buttons?
dcorbett
03-13-2003, 04:42 PM
When I create a form with radio buttons as the first element, for some reason a dotted square box appears around the first radio button. How can I get rid of this?
Thanks!
cheesebagpipe
03-14-2003, 12:19 AM
Try this:
<script type="text/javascript" language="javascript">
onload = focus;
</script>
dcorbett
03-14-2003, 09:54 AM
Thanks - it works! But I don't know why! Can you explain?
Quiet Storm
03-17-2003, 08:38 PM
Looks to me as if it sets focus() to the page instead of a form element, onLoad... :)
cheesebagpipe
03-17-2003, 10:22 PM
If I had written the equivalent:
<body onload="window.focus()">
...you would have gotten it. ;) In script, onload=focus means window.onload = function() {window.focus();}
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.