Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radio Button and the Back Button 1

Status
Not open for further replies.

airmoti

MIS
Jan 28, 2004
6
US
Hi,
I have a table window which contains rows selectable via a radio button. The radio buttons all have the same name. The selection sets some cookies etc...

A number of buttons at the top of the table then open a new window via location...

When I hit the back button from the new window, the radio button is still selected but the js variable which stated it was selected is now null. I believe this is how it should work.

How can I select the radio button when the back button is pressed?

Or am I going to have to deselect the radio button before I call the location parameter from the first page?

Thanks.
 
Why not put an onload function in your body tag to initially set all the javascript variables depending on what is selected? That way if they are visiting it for the first time, or coming back to the page, the javascript variables will have the correct data.

-kaht

banghead.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top