Értékelés nem, csak az akció
Mint mindig, most sem mondtam igazat
<html>
<head>
<script type="text/javascript">
function fuggveny(){
var fNAME=document.forms['beker'].elements['fNAME'];
alert(fNAME.value);
}
</script>
</head>
<body>
<form method=post name=beker onsubmit="return fuggveny()">
<input type=text name=fNAME>
<input type=submit name=gomb value=Valami>
</form>
</body>
</html>
De most már tényleg nem dolgozunk fel
Mint mindig, most sem mondtam igazat
<html>
<head>
<script type="text/javascript">
function fuggveny(){
var fNAME=document.forms['beker'].elements['fNAME'];
alert(fNAME.value);
}
</script>
</head>
<body>
<form method=post name=beker onsubmit="return fuggveny()">
<input type=text name=fNAME>
<input type=submit name=gomb value=Valami>
</form>
</body>
</html>
De most már tényleg nem dolgozunk fel
Input Type
First name:<br>
<input type="text" name="firstname"><br>
Last name:<br>
<input type="text" name="lastname">
<input type="text" name="firstname"><br>
Last name:<br>
<input type="text" name="lastname">
Input Type Password
User name:<br>
<input type="text" name="username"><br>
User password:<br>
<input type="password" name="psw">
<input type="text" name="username"><br>
User password:<br>
<input type="password" name="psw">
Input Type Submit
First name:<br>
<input type="text" name="firstname" value="Mickey"><br>
Last name:<br>
<input type="text" name="lastname" value="Mouse"><br><br>
<input type="submit" value="Submit">
<input type="text" name="firstname" value="Mickey"><br>
Last name:<br>
<input type="text" name="lastname" value="Mouse"><br><br>
<input type="submit" value="Submit">
Input Type Reset
<form action="/action_page.php">
First name:<br>
<input type="text" name="firstname" value="Mickey"><br>
Last name:<br>
<input type="text" name="lastname" value="Mouse"><br><br>
<input type="submit" value="Submit">
<input type="reset">
</form>
First name:<br>
<input type="text" name="firstname" value="Mickey"><br>
Last name:<br>
<input type="text" name="lastname" value="Mouse"><br><br>
<input type="submit" value="Submit">
<input type="reset">
</form>
Input Type Radio
<input type="radio" name="gender" value="male" checked> Male<br>
<input type="radio" name="gender" value="female"> Female<br>
<input type="radio" name="gender" value="other"> Other
<input type="radio" name="gender" value="female"> Female<br>
<input type="radio" name="gender" value="other"> Other
Input Type Checkbox
<input type="checkbox" name="vehicle1" value="Bike"> I have a bike<br>
<input type="checkbox" name="vehicle2" value="Car"> I have a car
<input type="checkbox" name="vehicle2" value="Car"> I have a car
Input Type Button
<input type="button" onclick="alert('Hello World!')" value="Click Me!">
Input Type Color
Select your favorite color:
<input type="color" name="favcolor">
<input type="color" name="favcolor">
Input Type Date
Birthday:
<input type="date" name="bday">
<input type="date" name="bday">
Nincsenek megjegyzések:
Megjegyzés küldése