haxxor at 20h15
21
Jan
2012
can i ask a code for making a HTML Page password? if its already posted please link it up over it here 
1 Rideem3, on 21/01/2012 at 21h28
Please take a look at the following website:
http://javascriptkit.com/script/cutindex6.shtml
There are several tutorials, however I don't recommend password protecting it because most JavaScript password protected pages can be hacked easily.
http://javascriptkit.com/script/cutindex6.shtml
There are several tutorials, however I don't recommend password protecting it because most JavaScript password protected pages can be hacked easily.
2 LGforum, on 21/01/2012 at 23h40
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.
3 haxxor, on 22/01/2012 at 04h29
Thx guys :> solved!
4 slg, on 22/01/2012 at 04h35
haxxor wrote:Thx guys :> solved!
| Topic Solved & Locked |
Similar topics
hi guys, I am having an idea of creating a website with forumotion, i'll be using all html pages in it, no forums no portals.
In my calculations i would have to create about 120 pages in the html, is it alright with forumotion? and can we create this
i have recently made a html page for my forum but i can't figure out how to add a button to my navigation bar linking it to the html page can someone help me please?
How can i insert an empty HTML PAGE to my forum?
Replies 1 to 4 on 4 for "Asking how to add HTML Page password"
Search
Informations
4 Replies For the topic :
"Asking how to add HTML Page password"
This topic has been viewed 997 times.
Last message :
21/01/2012 at 20h15 by "haxxor"





