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)
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! )
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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now