Click to See Complete Forum and Search --> : Open page in a frame with onClick event


Invader Zim
July 1st, 2007, 06:38 AM
I want to open a HTML page in a frame when the onClick event occurs.

Background : This is for a form , first some validation on the form is done with a javascript function validateForm() , this is fine , but after all validation is done , the user must be able to click on 'n <Next> button and go to the next page containing another form for him to complete.

Also how to you keep the information contained in the textboxes if the user wants to come back to make some changes , as the page will reload into the current frame.

PeejAvery
July 1st, 2007, 09:07 AM
I want to open a HTML page in a frame when the onClick event occurs.
Use...
onclick="framename.location='page.html'"

Also how to you keep the information contained in the textboxes if the user wants to come back to make some changes , as the page will reload into the current frame.
Is this page going to change and then someone clicks a "go back" button? If so, you will need to store the data. You could, from another frame, grab the information, and then if you need to repopulate it, use the other frame to retrieve that information.