Jump to content

prb03002

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by prb03002

  1. Thats what I had before but it didn't show up. This is the code for the HTML file:

    <html><head><title>external</title></head><body><script src="jstext.js"></script><p>The actual script is in an external script file called "jstext.js".</p></body></html>

    and the code to the javascript document is:

     My name is Prateek.  I am learning how to use JavaScript.

  2. I just started learning JavaScript and was trying to see how the external script works. Unfortunately, I was unsuccessful :) . I created a JavaScript document and tried to use that as an external script in a HTML file but it doesn't print the document out. Any suggestions? Note: My location for the document is correct

×
×
  • Create New...