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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

button display page

Status
Not open for further replies.

sirron

Programmer
Mar 11, 2004
139
US
I have a button that is not in a form.

And I want to click the button to go to the next page.
Is there a way to do this with out the button being in the form?

thank you
 
You could just redirect it to the next page via the onclick event. But there are several other things you need to take into consideration. If you do it that way, you're not sending any information from the form. And you would need to set the onclick event via something like the location.href event. There may be some other things that I'm missing at the moment, but this hopefully will get you started...

------------------------------------------------------------------------------------------------------------------------
If you don't have a sense of humor, you probably don't have any sense at all.
- Anonymous
 
try onclick="document.myform.submit();"
I usually use that within a form, but it should work outside too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top