0

I'm currently creating a basic website but i'm strugling on my menu buttons part.
I have created a Home, Info & Contact us buttons etc, but how do I link these so from the home page I can select Info, Contact us etc, then select the home page. If someone can help me on this or point me in the right direction that would be great.

4
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by bhartman21
0

If you already have created buttons...you should be able to add the onClick property like below...

<input type="button" name="btnHome" text="Home" onClick="javascript:window.location.href='default.htm';" />
<input type="button" name="btnContact" text="Contact Us" onClick="javascript:window.location.href='contactUs.htm';" />

Edited by bhartman21: n/a

0

If you created your menu with <input type="button"> then follow bhartman21 or else if you created your menu with <image> then follow pritaeas. Both will work.

0

you could actually just add the onclick event to any of the tags mentioned above:

<a href="#" onClick="javascript:window.location.href='contactUs.htm';">
    <img src="contact.jpg" />
</a>

- OR -

<img src="contact.jpg" onClick="javascript:window.location.href='contact.htm';" />

- OR -

<input type="button" name="btnHome" text="Home" onClick="javascript:window.location.href='default.htm';" />
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.