Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 simple html question
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 10 March 2001 :  10:03:16  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
i feel so stupid cause i can not remember this, but if i have a button on my html page and i want when it is clicked to goto a url without using a forum, how can i do that? I remember i think that it has to be done with javascript.

[/code]
<input type="button" value="Back" name="B3">
[/code]

Brad

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 10 March 2001 :  12:52:56  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
if you want a back button, it would look something like this...

<input type="button" value=" Back " onClick="history.go (-1);">

----------------
Da_Stimulator
Need a Mod?
My Snitz Test Center
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 10 March 2001 :  12:54:00  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
or if you want it to go to a certain page

<input type="button" value=" Name here " onClick="window.location('http://location.here');">

----------------
Da_Stimulator
Need a Mod?
My Snitz Test Center
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 10 March 2001 :  13:03:12  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Stim I could not get it to work. Here is the code I used.....


<input type="button" value="Back" onClick="window.location('http://www.free-guestbook.com/signup/signup_general.asp?id=<%=strMUserID%>&pass=<%=strMLoginPassword%>');">


The javascript code says that it does not support this action. Any ideas?

Brad
Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 10 March 2001 :  13:24:53  Show Profile  Visit tilttek's Homepage
quote:


<input type="button" value="Back" onClick="window.location('http://www.free-guestbook.com/signup/signup_general.asp?id=<%=strMUserID%>&pass=<%=strMLoginPassword%>');">


The javascript code says that it does not support this action. Any ideas?



If you don't use frame or if you want to keep into the same frame:

<input type="button" value="Back" onClick="location = 'http://www.free-guestbook.com/signup/signup_general.asp?id=<%=strMUserID%>&pass=<%=strMLoginPassword%>';">




Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07