View Full Version : simple javascript popup password not working for me!


confusedgeek
09-23-2005, 01:21 PM
hey. im presenting my project on a website, where i have also decided 2 have a quiz, using the javascript password prompt.
its not showing up on this page, and i cant work out why, its worked for other pages. here is what the html looks like ( minus the css, that takes up too much room!)

<HTML>
<HEAD><TITLE> < < º Green Day º > > </TITLE>


<script language="JavaScript" type="text/javascript">
<!--hide
var password;
var pass1="sweetchildren";
password=prompt('What was Green Day's original band name?!',' ');
if (password==pass1)
alert('YAY you got it right! Click OK to enter!');
else
{
window.location="http://www.freewebz.com/lkgreendayquestions/quiz4.htm";
}
//-->
</script>


</HEAD>

<BODY>
<p> Question4 </p>
<p> Billie Joe flipped ------ to earn money for their tour? </P>


<FORM METHOD="get" ACTION="http://www.freewebz.com/lkgreendayquestions/quiz5.htm"><INPUT TITLE="submit" TYPE="submit" STYLE="background:#eb000c" VALUE="Submit Answer"></FORM>





</BODY>
</HTML>


can anyone help? i don't know what im doing wrong. to see what's worked and what hasn't, www.freewebs.com/lkgreendayquestions/quiz.htm the answers and billiejoearmstrong ; sixteen .

if anyone can help ill be SOOOOOOOOO grateful! its due next thursday!
from kezna :D

kittycat
09-23-2005, 01:22 PM
Try taking out the ' in Green Day's (so that it's Green Days).