blk Posted March 12, 2009 Share Posted March 12, 2009 Hi guys im working on some basic JavaScript, when i run this script firefox is giving me the err. i dont understand what is wrong as it looks okay to me ? Error: missing ; before statement Line: 3 Source Code: fuction writeMessage(){ window.onload = writeMessage; fuction writeMessage(){ document.getElementById("helloMessage").innerHTML="xx"; } Quote Link to comment Share on other sites More sharing options...
Sparda Posted March 12, 2009 Share Posted March 12, 2009 fuction should be function Quote Link to comment Share on other sites More sharing options...
blk Posted March 12, 2009 Author Share Posted March 12, 2009 opps, thank you Quote Link to comment Share on other sites More sharing options...
Sparda Posted March 12, 2009 Share Posted March 12, 2009 I can't spell, and I don't read. Quote Link to comment Share on other sites More sharing options...
blk Posted March 12, 2009 Author Share Posted March 12, 2009 lol i wont say how long ive been looking at that line of code, duh! must be the beer Quote Link to comment Share on other sites More sharing options...
shawty Posted March 18, 2009 Share Posted March 18, 2009 or lack of coffee :P LOL Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.