<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body >
<form>
isim:<input type="text"/>
şifre:<input type="password"/>
<input type="button" value="gönder"/>
</form>
<script type="text/javascript">
//form erişimi
var phphocam=document.forms[0].length;
document.write(phphocam);
</script>
</body>
</html>
------------------------
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body >
<form name="phphocamFormu">
İsim:<input type="text" name="isim"/>
Şifre:<input type="password" name="sifre"/>
<input type="button" value="gönder"/>
</form>
<script type="text/javascript">
//form erişimi
var phphocam=document.forms[0].elements[0].name;
document.write(phphocam);
</script>
</body>
</html>
--------------------
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body >
<form name="phphocamFormu">
İsim:<input type="text" name="isim"/>
Şifre:<input type="password" name="sifre"/>
<input type="button" value="gönder"/>
</form>
<script type="text/javascript">
//form erişimi
var phphocam=document.phphocamFormu.isim.name;
document.write(phphocam);
</script>
</body>
</html>
-----------------
Hiç yorum yok:
Yorum Gönder