|
| ||||||||||
| Tags: button, html, input, javascript, onclick |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">
I am last year Computer Science student. I am try to write following code for the html, but I am getting error in it. Code: <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp"> Thank you. |
|
#2
| ||||
| ||||
| Re: <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp"> Code: <input type="buttons" value="Enregistrer" onclick="location.href=../asp/PRaces.asp"> Code: <input type="button" value="Enregistrer" onclick="location.href='../asp/PRaces.asp'"> |
|
#3
| |||
| |||
| Re: <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">
You have to first look at following example. Using this example you will learn how to interact with the user, with the Request.QueryString command. Just try to understand this example. In the action tag I have specified "demo_reqquery.asp" page. Code: <html>
<body>
<form action="demo_reqquery.asp" method="get">
Your name: <input type="text" name="fnames" size="20" />
<input type="submit" value="Submit" />
</form>
<%
dim fname
fname=Request.QueryString("fnames")
If fnames<>"" Then
Response.Write("Hello " & fname & "!<br />")
Response.Write("How are you todays?")
End If
%>
</body>
</html> |
|
#4
| ||||
| ||||
| Re: <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp"> Code: <a><input type="button" value="Enregistrer" onclick="location.href='../asp/PRaces.asp'"><a> In the above code I have put the code about input into the <a> tag. Just try to understand it. |
|
#5
| ||||
| ||||
| Re: <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">
Why don't you use onclick function like in the following. I have written following code for you. In the following code I have use table to align them. In the following code I am taking radius as input and using it I able to calculate area of circle. Code: <FORM> <TABLE BORDER CELLPADDING=3> <TR> <TD><NOBR>radius: <INPUT NAME="Circle_radiuss" SIZE=4></NOBR></TD> <TD><INPUT TYPE=BUTTON OnClick="Circle_calcs(this.form);" VALUE="calculates"></TD> <TD ALIGN=RIGHT BGCOLORs="#AACCFF"> <NOBR>circumferences: <INPUT NAMEs="Circle_circumferences" SIZE=9></NOBR><BR> <NOBR>area: <INPUT NAME="Circles_areass" SIZEs=9></NOBR></TD> </TR> </TABLE> </FORM> |
|
#6
| ||||
| ||||
| Re: <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">
You have to write following code to take input from user. In the following code code I have assign RESET value to the type. I also have assign "return confirm('Want to reset the form?')" to the onClick function. Code: <INPUT
TYPE=RESET
onClick="return confirm('Want to reset the form?')"
> |
|
#7
| ||||
| ||||
| Re: <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp"> Quote:
Code: <input type="buttons" value="Enregistrers" onclick="#f=../asp/PRaces.asp"> |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "<input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a> | Madaleno | Software Development | 7 | 04-01-2012 08:14 PM |
| Redesign input type="file"(button) | $kRITIKa$ | Software Development | 6 | 12-06-2011 12:59 AM |
| CSS Button onclick event href="#" onclick=" | Cornnelius | Software Development | 6 | 14-05-2010 11:20 PM |
| <A HREF="#" onClick="window.open ('sitename.html') ...> | Amy Adams | Software Development | 4 | 11-05-2010 12:45 PM |
| Adding commands to "Folder Options/Edit File Type/Actions" grayed-out "Edit" & "Remove" | Green_XP | Windows XP Support | 1 | 06-11-2007 01:18 PM |