JZL003 Posted March 18, 2011 Report Share Posted March 18, 2011 I am puttng this code:<html> <head> </head> <body> <script="javascript" type="text/javascript"> if (4<5){ document.write("nice job!"); } else{ document.write("Ohhh.Sorry"); } </script> </body> </html> down and it displays it like its a text. What did i type wrong??(sorry if this is basic but i am just 12 years old and trying to learn) Quote Link to comment Share on other sites More sharing options...
falkencreative Posted March 18, 2011 Report Share Posted March 18, 2011 Looks like your opening <script> tag has issues. All you need is this: <script type="text/javascript"> No need for the '="javascript"' part. (Welcome to the forum! ) Quote Link to comment Share on other sites More sharing options...
JZL003 Posted March 19, 2011 Author Report Share Posted March 19, 2011 Looks like your opening <script> tag has issues. All you need is this: <script type="text/javascript"> No need for the '="javascript"' part. (Welcome to the forum! ) thanks 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.
Note: Your post will require moderator approval before it will be visible.