Home | Top Skins | Tags | All Skins | Forums | Contribute | About

BlogSkins.com Forums

Forums > Tips & Tricks > "How to set password using javascript?" (2 replies)
L|nG's icon Author: L|nG
Posted: 2.0 years ago
(link)
Hi,

i went to visit some site and i notice that some of the site only allow certain people with password to access.

Anyone know how to do that? pls advice.

Thanks alot. =)
 
 
xxiaojesx's icon Author: xxiaojesx
Posted: 1.9 years ago
(link)
  (script language="JavaScript")
(!--hide
var password;
var pass1="PASSWORD HERE";
password=prompt('PW PROMPT');
if (password==pass1)
alert('ALERT WHEN YOU GET THE PW CORRECT');
else
{
window.location="WEB TO GO TO WHEN THE PW IS WRONG";
}
//--)
(/script)

change the ( and ) at the top and bottom of the script to
use this. (:
code gotten from my friend at http://myy-storriex.blogspot.com
 
 
mizuki08's icon Author: mizuki08
Posted: 1.8 years ago
(link)
  actually.. it is able to work.. bt.. the new windows internet explorer cannot view the pop up scripted which tat popup is the input value of the user.

i found this too..

[script]
alert("the password is enter")
//we will frirst ask the user if he wold like to countinue into this restricted area
var p=confirm("this site is pass word protected,do you still want to enter?")
if(p){
var ans="enter"
var pass=prompt("what is the pass word")
if(pass!==ans)
{
alert("wrong you will now be transfered")
window.location="http://yahoo.com"
}else{alert("correct");}
}else{window.location="http://yahoo.com"}
[/script]
Subscribe To This Thread: RSS 2.0 or Atom (?)
This thread has been locked, and no new replies can be posted.


Site

- Home
- News Archives
- About
- Stats
- Feeds
- Privacy Policy

Skins

- Tags
- Search Skins
- All Skins
- Random Skin
- Skin Of The Day
- Contribute

Forums

- General
- Tips & Tricks
- Help!
- Suggestions
- Skin Requests
- Blogging Software
- Web Hosting

Account

- Log In
- Register
</BlogSkins>

Warning! Do not follow this link! It is a trap for poorly-behaved bots. If you follow this link, you will be banned from accessing this site and several others. I will not have mercy on you. Do not follow this link!