Challenge 2


Chester
Member
Registered: 12.12.13 20:31
Timezone: UTC +0
Posts: 1

I'm stumped with this on one, not sure where to go or what do to.
I read over the pages Source Code as suggested but no luck.
I did pick up:

<form action='' method='POST'>
Username: <input type='text' name='username' size='20'/><br/>
Password: <input type='password' name='password'/><br/><br/>
<input class='button' type='submit' name='submit' value='Login' onclick='return checkpass(document.forms[0].username.value, document.forms[0].password.value)'/><br/>

This was the more important section of the code, however I'm not totally sure what is going on here:

onclick='return checkpass(document.forms[0].username.value, document.forms[0].password.value)

The login button seems to be blacked out and I can not check to see what my errors are or if it worked.

Some help on this would be appreciated, im new to this and enjoy learning!

Thanks in Advance
- Chess


ynori7
Administrator
Registered: 24.08.11 12:16
Timezone: UTC +2
Posts: 132

Chester wrote:
onclick='return checkpass(document.forms[0].username.value, document.forms[0].password.value)

Well, you already noticed the onlick there. Try looking at the function definition.

i537.photobucket.com/albums/ff338/ynori77/archenemysig1.jpg