Hi pazhanikanthan!
I sent you an e-mail last week and got no answer, si I postin it below...
- - - - - -
What I want to do is a sort of password checking to access some restricted area in a site (using geocities). I have an input field (see example) and the user types a password.
The password is the name of the next HTML page. If is correct, it opens the page (already working), if not, displays a "page not found" message.
I want to check if the HTML page exists to send an alert (Invalid Password) to avoid the "page not found error". Piece of the page follows.
<html>
<body leftmargin=30 topmargin=30>
<form action="javascript:OpenWin()" method=get name="F1">
<B>Type the Password :</B> <input name="P1" type=password>
<script language="javascript">function OpenWin()
{ window.location.href = document.F1.P1.value+".htm"

}</script>
<INPUT TYPE="submit" VALUE=" GO ">
</form>
</body>
</html>
- - - - - -
Thanks and Regards
Sandor