Syntax Error in my javascript code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
boba fett
Forum Newbie
Posts: 15
Joined: Fri Jul 09, 2010 2:48 pm

Syntax Error in my javascript code

Post by boba fett »

Dreamweaver is tellin me there is a syntax error in this line of my code.

if (event.keyCode > 40 || event.keyCode == <img src="./images/smilies/icon_cool.gif" alt="8)" title="Cool" /> {

Could this be my cause of it not working right???
followed directions and i know what to do with the jquery library but still not workin
(can post full code if needed)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Syntax Error in my javascript code

Post by Christopher »

It looks like it might be a quoting problem. It looks like it might be a quoting problem.It needs to be:

if (event.keyCode > 40 || event.keyCode == "something here") {
(#10850)
Post Reply