need code to refresh a pull down menu when the IE back button is used.

  • Thread starter thanks for the help mate
  • Start date
T

thanks for the help mate

I have a pull down menu the is used to be forwarded to a new page, when you
click the 'back' button to return to the last page to select a new
selection, it shows the last view with the selected date you made. how can
I get it to reset to the first selection.

I know I should use a 'return' link on the new pages to come back to the
last page. but really want it to reset as most would use the 'back' button
anyway.

thank you

Jason
 
J

Jon Spivey

Hi,
you could stick a bit of script on the page after the dropdown -
<script type="text/javascript">
document.YourForm.YourListBox.options.selectedIndex=0;
</script>
This will reset it to the first choice
 
T

thanks for the help mate

thanks

I knew there must be a way just could not get the right code.

as they say, it was staring me in the face.

cheers.

Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top