meltedtoons
28 Oct 2010, 11:43 PM
on IE the password script I use for Javascript always asks you to allow the script before it runs it is there a way to stop this?
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<title>Answer My Homework</title><link rel="stylesheet" type="text/css" href="http://answermyhw.webs.com/stylesheet2.css">
<SCRIPT language="JavaScript">
function GateKeeper() {
var password = prompt("Password required:", "Type in your password");
if (password) { this.location.href = password + ".html"; }}
//--></SCRIPT>
</head>
<body>
<div id="wrapper">
<div id="header"> </div>
<div id="content">
</div>
<br>
</div></div>
</div></body></html>
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<title>Answer My Homework</title><link rel="stylesheet" type="text/css" href="http://answermyhw.webs.com/stylesheet2.css">
<SCRIPT language="JavaScript">
function GateKeeper() {
var password = prompt("Password required:", "Type in your password");
if (password) { this.location.href = password + ".html"; }}
//--></SCRIPT>
</head>
<body>
<div id="wrapper">
<div id="header"> </div>
<div id="content">
</div>
<br>
</div></div>
</div></body></html>