View Full Version : age pop up

09-29-2012, 07:21 PM
Message pop up. Sorry about the bad topic name.

Hi Not shure if this is a html or Java issue. If you go to the following website and scrole down a bit


Type in anything for a Enter trailer unlock code: and as it will be wrong, a pop up window appears

Can someone tell me how this is done please.

P.S. The code is wibbly

Thanks TIA


09-29-2012, 10:06 PM
<input class="go" type="submit" value="GO" onclick="CheckNPlay();">
<script type="text/javascript">
function CheckNPlay(){
if($.md5($('#passbox').val().toLowerCase()) == '76a53892029118e7719b0e3d6d0b30c5')
{// etc

probably the worst form of password validation you could have, but anyway...

10-01-2012, 03:59 PM
Sorry you missed the point. I am not trying to write the website you saw.
I wan't to know how the guys who wrote the red dwarf page did this pop up. If I typed in the correct password that they created 'wibbly' I was allowed in.

If I put the wrong password in a pop up window told me it was wrong

I need to know how to create a pop up window.


10-01-2012, 04:02 PM
I'm not missing the point at all. Have a look at the code I posted:
1 click the button to fire the function
2 compare the value of the input box to the password
3 if it's the same, run the code
4 if not, pop an alert

if you're asking how to code an alert, that would be