 |
| HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

January 28th, 2004, 08:54 AM
|
|
Authorized User
|
|
Join Date: Oct 2003
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
open menu selection
i have a main menu with four buttons. Each button will open different page. how am i going to code the buttons to direct to the page?
for example, if employee button is clicked go to employee form
and if customer button is clicked, go to customer form.
|
|

January 28th, 2004, 09:06 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
What kind of buttons are you using? Images? HTML buttons?
When you're using images simply wrap the image in an ordinary <a> tag:
<a href="Customer.html"><img src="Customer.gif" /></a>
If you're using HTML buttons, you'll need some JavaScript.
Are your pages using frames?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

January 28th, 2004, 06:42 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
And in case you ARE using HTML buttons...
<input type=button onclick="window.location='next_page.htm'" value=whatever>
-OR-
<button onclick="window.location='next_page.htm'">whatever </button>
HTH
Snib
|
|

January 29th, 2004, 04:30 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Right, but I figured he was aware of that, after this discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=7305
:)
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

January 29th, 2004, 06:57 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Sorry, Imar, I didn't see that one.
:)
Snib
----------
---Snib---
----------
|
|

February 1st, 2004, 02:30 AM
|
|
Authorized User
|
|
Join Date: Oct 2003
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thx for you help guys.
|
|
 |