Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Jul 4, 2011 6:28:33 GMT
<script type="text/javascript"> <!-- // Delete password field in FIREFOX if(document.modifyForm and document.modifyForm.password) { window-onload = function(){ document.modifyForm.password.value = '';} } </script> Now don't just go and search for the code, actually try and find errors, it will help you learn to code and cheating isn't cool! There are 3 errors, try find one max each
|
|
rubix
Elite Level 1
Rage[M:4750]
Posts: 670
|
Post by rubix on Jul 4, 2011 7:59:09 GMT
the "and" needs to be "&&"
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Jul 4, 2011 8:33:17 GMT
Yup
|
|
rubix
Elite Level 1
Rage[M:4750]
Posts: 670
|
Post by rubix on Jul 4, 2011 8:56:43 GMT
Whats my prize ?
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Jul 4, 2011 9:04:11 GMT
A high-five.
2 more errors to find.
|
|
Nick
VIP
v5 Beta Tester[M:5000]
Philadelphia Eagles: 8-8
Posts: 2,239
|
Post by Nick on Jul 8, 2011 4:24:58 GMT
Instead of saying 'there is 3 errors' you should say 'there are 3 errors'
And back on topic!
window-onload
To
window.onload ?
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Jul 8, 2011 4:26:30 GMT
Thanks for pointing that out and correct
|
|
Nick
VIP
v5 Beta Tester[M:5000]
Philadelphia Eagles: 8-8
Posts: 2,239
|
Post by Nick on Jul 8, 2011 4:36:34 GMT
Sorry, but I just really wanted to get the last one! No closing html comment!
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Jul 8, 2011 4:58:38 GMT
Woohoo! Well done Broken one: <script type="text/javascript"> <!-- // Delete password field in FIREFOX if(document.modifyForm and document.modifyForm.password) { window-onload = function(){ document.modifyForm.password.value = '';} } </script> Fixed: <script type="text/javascript"> <!-- // Delete password field in FIREFOX if(document.modifyForm && document.modifyForm.password) { window.onload = function(){ document.modifyForm.password.value = '';} } //--> </script>
|
|
|
Post by (/iPokemon/) on Jul 8, 2011 17:13:50 GMT
Darn, I didn't get to say anything.. <script type="text/javascript"><!-- if(document.modifyForm && document.modifyForm.password){ window.onload = function(){ document.modifyForm.password.value = ""; } } //--></script>
|
|
Nick
VIP
v5 Beta Tester[M:5000]
Philadelphia Eagles: 8-8
Posts: 2,239
|
Post by Nick on Jul 9, 2011 1:16:56 GMT
No </script> !
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Jul 9, 2011 3:15:42 GMT
I'll make #2 soon
|
|