JZL003 Posted March 18, 2011 Report 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
falkencreative Posted March 18, 2011 Report 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
JZL003 Posted March 19, 2011 Author Report 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
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.