Unless I put the code in the script tag, the actual javascript would never show. Could someone tell me why?
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');
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Unless you show what you're doing we can't help you much.
Here's a simple example that works:
hello.html
hello.js