HighDots Forums  

form button

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss form button in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
towcan's
 
Posts: n/a

Default form button - 11-01-2004 , 01:28 PM






Hi yea,
if I want to use a form button not in a form but as a button, how can I make
it onclick to go to another page.

<input type="submit" name="Submit" value="Submit">


pretend the other page was called ahha.asp and the button was called go to
ahha



regards

twocan's



Reply With Quote
  #2  
Old   
Kim
 
Posts: n/a

Default Re: form button - 11-01-2004 , 01:44 PM






go to url behaviour... Ithink )

Kim

towcan's wrote:
Quote:
Hi yea,
if I want to use a form button not in a form but as a button, how can I make
it onclick to go to another page.

input type="submit" name="Submit" value="Submit"


pretend the other page was called ahha.asp and the button was called go to
ahha



regards

twocan's



Reply With Quote
  #3  
Old   
towcan's
 
Posts: n/a

Default Re: form button - 11-01-2004 , 01:44 PM



naaaa that is a text link, I want a form button link. with an onclick.


regards

twocan's



"Kim" <not (AT) this (DOT) com> wrote

Quote:
go to url behaviour... Ithink )

Kim

towcan's wrote:
Hi yea,
if I want to use a form button not in a form but as a button, how can I
make it onclick to go to another page.

input type="submit" name="Submit" value="Submit"


pretend the other page was called ahha.asp and the button was called go
to ahha



regards

twocan's



Reply With Quote
  #4  
Old   
Michael Fesser
 
Posts: n/a

Default Re: form button - 11-01-2004 , 02:00 PM



.oO(towcan's)

Quote:
if I want to use a form button not in a form but as a button, how can I make
it onclick to go to another page.
Why not use a normal link? Or an image looking like a button?

Micha


Reply With Quote
  #5  
Old   
towcan's
 
Posts: n/a

Default Re: form button - 11-01-2004 , 02:11 PM



hope you win the lottery.

big thanks


twocan's


"Kim" <not (AT) this (DOT) com> wrote

Quote:
Naaa yourself... select your form button and apply the go to url behaviour
like this:

input name="Submit" type="submit"
onclick="MM_goToURL('parent','http://www.mouseriders.dk');return
document.MM_returnValue" value="Submit" /



towcan's wrote:
naaaa that is a text link, I want a form button link. with an onclick.


regards

twocan's



"Kim" <not (AT) this (DOT) com> wrote in message
news:cm5vt6$isl$1 (AT) forums (DOT) macromedia.com...

go to url behaviour... Ithink )

Kim

towcan's wrote:

Hi yea,
if I want to use a form button not in a form but as a button, how can I
make it onclick to go to another page.

input type="submit" name="Submit" value="Submit"


pretend the other page was called ahha.asp and the button was called go
to ahha



regards

twocan's




Reply With Quote
  #6  
Old   
Kim
 
Posts: n/a

Default Re: form button - 11-01-2004 , 02:13 PM



Naaa yourself... select your form button and apply the go to url
behaviour like this:

<input name="Submit" type="submit"
onclick="MM_goToURL('parent','http://www.mouseriders.dk');return
document.MM_returnValue" value="Submit" />



towcan's wrote:
Quote:
naaaa that is a text link, I want a form button link. with an onclick.


regards

twocan's



"Kim" <not (AT) this (DOT) com> wrote in message
news:cm5vt6$isl$1 (AT) forums (DOT) macromedia.com...

go to url behaviour... Ithink )

Kim

towcan's wrote:

Hi yea,
if I want to use a form button not in a form but as a button, how can I
make it onclick to go to another page.

input type="submit" name="Submit" value="Submit"


pretend the other page was called ahha.asp and the button was called go
to ahha



regards

twocan's




Reply With Quote
  #7  
Old   
towcan's
 
Posts: n/a

Default Re: form button - 11-01-2004 , 02:14 PM



today is monday.

twocan's



"Michael Fesser" <netizen (AT) gmx (DOT) net> wrote

Quote:
.oO(towcan's)

if I want to use a form button not in a form but as a button, how can I
make
it onclick to go to another page.

Why not use a normal link? Or an image looking like a button?

Micha



Reply With Quote
  #8  
Old   
Gary White
 
Posts: n/a

Default Re: form button - 11-01-2004 , 03:21 PM



towcan's wrote:

Quote:
if I want to use a form button not in a form but as a button, how can I make
it onclick to go to another page.

input type="submit" name="Submit" value="Submit"

<input type="button" value="Submit" onClick="window.location='ahha.asp';">

Or better yet:

<script type="text/javascript">
document.write("<input type=\"button\" value=\"Submit\" onClick=\"window.location='ahha.asp'\";>");
</script>
<noscript>
<a href="ahha.asp">Submit</a>
</noscript>


Gary


Reply With Quote
  #9  
Old   
Michael Fesser
 
Posts: n/a

Default Re: form button - 11-01-2004 , 03:30 PM



.oO(Kim)

Quote:
Naaa yourself... select your form button and apply the go to url
behaviour like this:

input name="Submit" type="submit"
onclick="MM_goToURL('parent','http://www.mouseriders.dk');return
document.MM_returnValue" value="Submit" /
What about users without Javascript?

Micha


Reply With Quote
  #10  
Old   
Kim
 
Posts: n/a

Default Re: form button - 11-02-2004 , 08:39 AM



It don't seem to be Twocan's concern. I would have used css instead as
you suggested yourself... but that wasn't the question. Twocan asked if
it could be done and it could.

Kim

Michael Fesser wrote:
Quote:
.oO(Kim)


Naaa yourself... select your form button and apply the go to url
behaviour like this:

input name="Submit" type="submit"
onclick="MM_goToURL('parent','http://www.mouseriders.dk');return
document.MM_returnValue" value="Submit" /


What about users without Javascript?

Micha

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.