. Login Register
Fatal Forces Gaming Community & Streamers

No.1 for all forum needs Ask the experts

You are not connected. Please login or register

Password protect a Html Page

View previous topic View next topic Go down Message [Page 1 of 1]

Post: #1on Tue Feb 11, 2014 10:53 am


A code that brings up a password window that the person must enter before gaining access to the password protected page. This is to keep others off of the web pages you choose.

<script language="JavaScript">
    var password;
    var pass1="PASSWORD-HERE";
    password=prompt('PunBB Community Has Forbidden You Access To This Page. To Gain Access You Must Have The Correct Code!',' ');
    if (password==pass1) alert('Pass Code Accepted!');
    else {
    window.location="HTML PAGE-LINK";
Tutorial Credits: PunBB Experts Community™
All content posted on Punbb Experts Forums is property of Punbb Experts and shall not be copied or posted anywhere else. With out written consent from the tutorial creator or forum Administration.

View user profile http://baf-gaming.forumotion.com

Post: #2on Tue Feb 11, 2014 11:03 am


Very nice tutorial man keep up the great work

View user profile

View previous topic View next topic Back to top Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum

PunBB Share Links!

URL Direct