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

Button to launch a page

Status
Not open for further replies.

ljCharlie

IS-IT--Management
Apr 21, 2003
397
US
Will anyone help me on how to create a buton that will launch a page? Here's what I have:

<input type=&quot;button&quot; name=&quot;Home&quot; value=&quot;Home&quot; onClick=&quot;photoAlbum.html&quot;>

But this doesn't work.

Any help is appreciated!

ljCharlie
 
This will open the link in a new window:

<input type=&quot;button&quot; name=&quot;Home&quot; value=&quot;Home&quot; onClick=&quot;window.open('photoAlbum.html')&quot;>

This will open a URL in the active window:
<input type=&quot;button&quot; name=&quot;Home&quot; value=&quot;Home&quot; onClick=&quot;window.location = 'photoAlbum.html'&quot;>

have fun.


Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
Thank you very much for your help. It has worked wonderfully!

ljCharlie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top