[Javascript] Submit button > go to URL

Filipiak, Bob (Contractor) filipiab at atsc.army.mil
Fri Apr 27 08:56:06 CDT 2001


Why use a button for what is just a hyperlink? If you do use a type="submit"
or type="button" make sure they are enclosed in between <form> </form> tags
to avoid problems.

Bob Filipiak (Contractor)
MCP 

-----Original Message-----
From: Ben [mailto:ben at babelfish.co.uk]
Sent: Friday, April 27, 2001 9:14 AM
To: javascript at LaTech.edu
Subject: Re: [Javascript] Submit button > go to URL


> 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


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010427/caf28bd1/attachment.htm>


More information about the Javascript mailing list