[Javascript] Submit button > go to URL

Ben ben at babelfish.co.uk
Fri Apr 27 08:14:22 CDT 2001


> Very basic question..
> 
> Is it possible for a <input type="submit"> to simply go to a URL??
> 
> Surely it's possibe.
> Thanks in advance.

Why not use type="button" and on the onClick event do something like:

    onClick="docuemnt.location = 'http://www.thissite.com/thispage.html'"

????

 .b





More information about the Javascript mailing list