Javascript button navigation bar

P

PythonUsr

Hello! I am quite new to Javascript, but not new to programming in
general or to (X)HTML.

Using events, is it possible to redirect someone to a new page? So if
you lined up five buttons, you could use this as your page's navigation
bar?

Sorry if this is a really beginners question! I am learning.

-- Alex
 
R

Randy Webb

PythonUsr said the following on 12/23/2006 5:08 PM:
Hello! I am quite new to Javascript, but not new to programming in
general or to (X)HTML.

Using events, is it possible to redirect someone to a new page? So if
you lined up five buttons, you could use this as your page's navigation
bar?

<a href="somewhere.html">Go somewhere</a> And you can put as many as you
want. Using javascript for navigation is a bad idea as your navigation
will be broken to non-JS browsers (either disabled or not available).

You can use CSS to style the links.
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top