Click on button to hyperlink

G

Greg Maxey

Hi,

I am trying to put a button on the bottom of my webpage that will hyperlink
the user to a User Feedback form. I already have a "Print Tip" button on
the bottom of the form which opens the printer dialog box. I don't know
what to put in the onclick =
section to hyperlink to the desired page.

Here is a link to the subject page:

http://gregmaxey.mvps.org/add_check_boxes.htm the two buttons are at the
bottom.

Here is the code that I have now. The GoTo User_Feedback.asp is not
working. Thanks.


<input type="button" value="&nbsp;&nbsp;User Feedback"
name="GoToUserFeedBack" onclick= GoTo "User_Feedback.asp">&nbsp;&nbsp;<input
type="button" value="&nbsp;&nbsp;&nbsp;&nbsp;Print This
Tip!&nbsp;&nbsp;&nbsp;&nbsp;" name="printwindow0"
onClick="window.print()"></font></td>
 
S

Stefan B Rusynko

All form buttons need to be inside of forms tags and you should use a submit button for the link

You have
<input type="button" value="&nbsp;&nbsp;User Feedback" name="GoToUserFeedBack" onclick= GoTo "User_Feedback.asp">&nbsp;&nbsp;
<input type="button" value="&nbsp;&nbsp;&nbsp;&nbsp;Print This Tip!&nbsp;&nbsp;&nbsp;&nbsp;" name="printwindow0"
onClick="window.print()">

Make it
<form action="User_Feedback.asp">
<input type="submit" value="User Feedback" name="GoToUserFeedBack">
&nbsp;&nbsp;
<input type="button" value="Print This Tip!" name="printwindow0" onClick="window.print()">
</form>




| Hi,
|
| I am trying to put a button on the bottom of my webpage that will hyperlink
| the user to a User Feedback form. I already have a "Print Tip" button on
| the bottom of the form which opens the printer dialog box. I don't know
| what to put in the onclick =
| section to hyperlink to the desired page.
|
| Here is a link to the subject page:
|
| http://gregmaxey.mvps.org/add_check_boxes.htm the two buttons are at the
| bottom.
|
| Here is the code that I have now. The GoTo User_Feedback.asp is not
| working. Thanks.
|
|
| <input type="button" value="&nbsp;&nbsp;User Feedback"
| name="GoToUserFeedBack" onclick= GoTo "User_Feedback.asp">&nbsp;&nbsp;<input
| type="button" value="&nbsp;&nbsp;&nbsp;&nbsp;Print This
| Tip!&nbsp;&nbsp;&nbsp;&nbsp;" name="printwindow0"
| onClick="window.print()"></font></td>
|
| --
| Greg Maxey/Word MVP
| See:
| http://gregmaxey.mvps.org/word_tips.htm
| For some helpful tips using Word.
|
|
 
G

Greg Maxey

Stefan,

Pefect. Thank you. One question - how does the the GoTo bit work. The
page is named User_Feedback.asp, the value="User Feedback" and the
name="GoToUserFeedBack"

None of them match. How does it work??
 
R

Ronx

The action="User_Feedback.asp" in the form tag directs the form
results to the feedback page. Of course, in this form there are no
results, apart from the value in the submit button, which is ignored
by the form handler (User_Feedback.asp).
 
G

Greg Maxey

Ronx,

Thanks. So then name="GoToUserFeedBack" is just a lable for the button and
value="User Feedback" determines the text displayed in the button. Is that
right?
 
G

Greg Maxey

Thanks. I think I have my feedback setup now. Thanks to you and a few
others.
 

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