navigating from one page to another

S

SolFrankRosen

Hi, I'm a newbie to javascript. I work mostly with VB.net on .aspx
pages where most of the time to move from one page to another I use
VB.net's "Response.Redirect" to go to my needed URL. But I can't use
that in a simple .htm page and I need to use a button rather than a
simple hyperlink. Any clues on how to do this? Thanks!
 
H

Hal Rosser

SolFrankRosen said:
Hi, I'm a newbie to javascript. I work mostly with VB.net on .aspx
pages where most of the time to move from one page to another I use
VB.net's "Response.Redirect" to go to my needed URL. But I can't use
that in a simple .htm page and I need to use a button rather than a
simple hyperlink. Any clues on how to do this? Thanks!

Put <a> tags around the button tag.
no javascript required.
<a href="http://www.w3schools.com" style="text-decoration: none" ><input
type="button" value="Pusha This" /></a>
 
T

Thomas 'PointedEars' Lahn

Randy said:
SolFrankRosen said the following on 12/12/2007 9:33 AM:

<button onclick="document.location='new URL'">Go there</button>

document.location has been deprecated long since in favor of
window.location. (I have told you that before.)


PointedEars
 

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

Forum statistics

Threads
473,771
Messages
2,569,587
Members
45,099
Latest member
AmbrosePri
Top