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

Need help with Buttons

Status
Not open for further replies.

moepower

Programmer
Oct 5, 2000
93
US
I have a survey that is three pages long and need buttons to do the following:

Page1 - Next
Page2 - Back and Next
Page3 - Clear, Modify (goes back to Page1), and Submit

My problem is I want to use custom images for the buttons and not use the default buttons with the INPUT TYPE="submit", etc. I want to use INPUT TYPE="image" .... but don't know how to write the code to do this. Also I want the tab order to be only on the last buttons to the right. Is this do-able with HTML and Javascript? Thanks,

 
Use the javaScript onClick function to let the image take you to another page:

<img src=&quot;blah.gif&quot; onClick=&quot;/mypage.html&quot;>

In the tag for tab order put taborder=1 the 2nd is taborder=2 and so on.

<img src=&quot;blah.gif&quot; onClick=&quot;/mypage.html&quot; taborder=1>

;-)

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top