Javascript cookie ile kaç kere ziyaret ettiğini ekrana yazdır
<!-- TWO STEPS TO INSTALL PASSWORD VERIFIER:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <SCRIPT LANGUAGE="JavaScript">
<!-- Original: Carey Walker (carey.walker@citicorp.com) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function checkPw(form) {
pw1 = form.pw1.value;
pw2 = form.pw2.value;
if (pw1 != pw2) {
alert ("nYou did not enter the same new password twice. Please re-enter your password.")
return false;
}
else return true;
}
// End -->
</script> <!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<form onSubmit="return checkPw(this)">
<center>
<table border="0">
<tbody>
<tr>
<td>Password:</td>
<td><input type="text" name="pw1" size="10" /></td>
</tr>
<tr>
<td>Re-enter:</td>
<td><input type="text" name="pw2" size="10" /></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Submit!" /></td>
</tr>
</tbody>
</table>
<p> </p>
<center><font class="Apple-style-span" face="arial, helvetica" size="1"><br />
</font></center>
<p><!-- Script Size: 1.13 KB --></p>
</center>
</form>