Tarantino
04-10-2006, 06:05 PM
Is there any way to make them reset when the user hits "refresh" in explorer? When I hit refresh- all values that are set by them are refreshed but whatever is "toggled" seems to stay toggled.
|
Click to See Complete Forum and Search --> : [RESOLVED] pulldown menus... Tarantino 04-10-2006, 06:05 PM Is there any way to make them reset when the user hits "refresh" in explorer? When I hit refresh- all values that are set by them are refreshed but whatever is "toggled" seems to stay toggled. balloonbuffoon 04-10-2006, 06:31 PM Do you mean you want to make the selects go back to the first option when the page is reloaded? If so, try putting this into your head: <script> function resetSel() { sels = document.getElementsByTagName("select"); for (var i=0;i<sels.length;i++) { sels[i].options.selectedIndex = 0; } } </script>and put this in your body tag: onload="resetSel()"I didn't test it but I think it should work. --Steve phpnovice 04-10-2006, 06:31 PM The only way I can think to do it is to have an onload function that checks to make sure everything is in a pristine state. Tarantino 04-10-2006, 07:11 PM tnx baloon. Worked fine. balloonbuffoon 04-10-2006, 07:15 PM No problem. --Steve webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |