Asking how to add HTML Page password
3 posters
Page 1 of 1
Asking how to add HTML Page password
can i ask a code for making a HTML Page password? if its already posted please link it up over it here
Last edited by haxxor on January 22nd 2012, 4:31 am; edited 1 time in total
haxxor- Forumember
- Posts : 157
Reputation : 1
Language : English,Filipino,CSS,HTML/Javascript
Re: Asking how to add HTML Page password
Javascript passwords are not secure at all. The only proper way to password protect a page is server-side.
Anyway, you can simulate a password through javascript by creating a prompt box.
What that short bit of javascript will do is pop up a box asking for the password, if they type it in right, then the page will continue to load, but if they don't it will redirect them to your home page.
Anyway, you can simulate a password through javascript by creating a prompt box.
- Code:
<script>
if (prompt('Whats the password?','') != 'YOUR PASSWORD'){window.location="/" }<script>
What that short bit of javascript will do is pop up a box asking for the password, if they type it in right, then the page will continue to load, but if they don't it will redirect them to your home page.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Asking how to add HTML Page password
Thx guys :> solved!
haxxor- Forumember
- Posts : 157
Reputation : 1
Language : English,Filipino,CSS,HTML/Javascript
Re: Asking how to add HTML Page password
haxxor wrote:Thx guys :> solved!
Topic Solved & Locked |
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Password needed to get to html page?
» Password Protect HTML Page In Your Admin Panel
» HTML Page Login Form redirect to another Html Page when failed
» How to Embed a Google Docs Form into an HTML page using HTML Pages Management
» i Dont Want To Creat HTML Page But Edit Forums HTML
» Password Protect HTML Page In Your Admin Panel
» HTML Page Login Form redirect to another Html Page when failed
» How to Embed a Google Docs Form into an HTML page using HTML Pages Management
» i Dont Want To Creat HTML Page But Edit Forums HTML
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum