Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

External Javascript Document Not Working in HTML

Jasmine AlmasriJasmine Almasri Member Posts: 5

Unless I put the code in the script tag, the actual javascript would never show. Could someone tell me why?

Comments

  • B00B00 Member Posts: 90 ✭✭✭

    Unless you show what you're doing we can't help you much.
    Here's a simple example that works:
    hello.html

    <html>
    <head>
    <title>test</title>
    <script src="hello.js"></script>
    </head>
    </html>
    

    hello.js

    document.write('hello');
    document.write(' world');
    
Sign In or Register to comment.