Quantcast
Viewing all articles
Browse latest Browse all 108516

Re: How can I restrict access to some webpages

Dude put this in your header tags...

 

<SCRIPT LANGUAGE="JavaScript">

function goForit() {

  var location;

  var password;

  password=this.document.testform.inputbox.value

  window.location=password + ".html"

}

</SCRIPT>

 

and this in your body where you want the login

 

<FORM NAME="testform">

<INPUT TYPE="text" NAME="inputbox" VALUE="" size=20>

<INPUT TYPE="button" NAME="button" Value="Login" onClick="goForit(this.form)">

</FORM>

 

the password is whatever you call the restricted page/s


Viewing all articles
Browse latest Browse all 108516

Trending Articles