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

How do I make a button a reference another page? 1

Status
Not open for further replies.

LonnieJohnson

Programmer
Apr 16, 2001
2,628
US
I know this is probably HTML 101, but how do I code a button to take me to another page.

This is my button...


<button>Go to page 2</button>


I tried this...


<button href=&quot;Page2.html&quot;>Go to page2</button>


It dosen't seem to work.

I just started learning html this week. Please be tolerant.


prodevmg@yahoo.com
ProDev, MS Access Applications B-)
May God bless you in the year 2002.
 
<input type=&quot;button&quot; value=&quot;go&quot; onClick=&quot;window.location.href ='page.htm'&quot;> admin@onpntwebdesigns.com
 
If you want to use an image as your button, use the A HREF tag:

<A HREF=&quot;http: SRC=&quot;image_path/imagefile&quot; WIDTH=&quot;x&quot; HEIGHT=&quot;y&quot; BORDER=&quot;z&quot;></A> There's always a better way...
 
Thanks tviman,

I am always looking for different ways of doing things. I will keep this in my notes. I'm sure I will use it.

Thanks again. prodevmg@yahoo.com
ProDev, MS Access Applications B-)
May God bless you in the year 2002.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top