JavaScript level 1

Intro 3

Alexhcj
10 years ago

0

Hi guys, I am trying to get rid of JavaScript level 1

I viewed the page source and I think the password in this line

    <script type='text/javascript'> $(function(){ $('.level-form').submit(function(e){ e.preventDefault(); if(document.getElementById('pass').value == correct) { document.location = '?pass=' + correct; } else { alert('Incorrect password') } })})</script>  

I tried ‘pass’ and it was wrong can someone give me a hint not an answer just a hint

Thank you :)

11replies
13voices
712views
[deleted user]
10 years ago

0

You should learn some javascript http://www.codecademy.com/

You’re missing some code, here correct is a variable ;)

Cyan Wind [freewind1012]
10 years ago | edited 10 years ago

0

@Alexhcj: You should put your code in spoiler tag, like this:
[ spoiler ]Put your code here![ /spoiler ] (remove the spaces)

You should learn JavaScript too (W3Schools - JavaScript) as well. We can’t explain every single function to everyone.

xPigeardJrx
10 years ago

0

We need to learn all about javascript for do this level ??? (I’m french, sorry for the mistakes ;) )

dloser
10 years ago

2

/me shakes head

synstealth
10 years ago

0

in order to beat Javascript levels, yes its pretty obvious that the answer is:

YES!!

hackitor
9 years ago

-1

i know javascript but i cant understand that shit

Mr. Cyph3r [MrCyph3r]
9 years ago

-5

haha, you are definitely looking at the wrong shit man!

Listen, you have to look in front of you, that big box is a monitor… from here you have to click on your google bookmark (with your mouse) and type in (using your keyboard) “How to post in a forum without being a complete idiot”.

Once you done that you can come back, ask something and expect a smart answer.

Retr01
7 years ago

0

I’m French but it’s true that it’s hot javascript!

script01
7 years ago

0

take it easy on him

Smyler [WHGhost]
7 years ago

0

It was 2 years ago… Don’t post on old threads when you can avoid it.

Darwin [DIDIx13]
7 years ago

0

I wonder why people do this. It’s obvious user hasn’t connected from years so he won’t see your message.

2 replies have been removed
You must be logged in to reply to this discussion. Login
1 of 12

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss