Javascript/Mac - Very Stange "Basic" Issues

Discussion in 'JavaScript' started by gambit258870, Feb 25, 2010.

  1. #1
    Hey community

    This is frustrated me so darn much, Im going to break something

    I recently picked up Javascript.

    <!DOCTYPE html>
    <html>
    <head>
    <title>Test page</title>
    <script src="test.js">
    </head>
    <body>
    </body>
    </html>



    I post that in my TEXTEDIT application word text crap, save it as a HTML, and then open it with FIREFOX. But when firefox opens I see the script text, not the "TEST", just the ENTIRE script with the <'s and >'s.

    I really don't know where to go or what to do, but I really want to learn this. I dont have any script blockers or anything either on firefox, I don't know what to do!

    Please help...

    I have RTF turned off and on Plain Text, and turned off RTF affecting HTML in the TEXTEDIT configs.
     
    gambit258870, Feb 25, 2010 IP
  2. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #2
    you need to close the script tag.

    
    <script src="test.js" type="text/javascript"></script>
    HTML:
     
    dimitar christoff, Feb 26, 2010 IP