Jump to content
atulthakre

correct way to write external javascript

Recommended Posts

if i want to create a external javascript file then should i write javascript in between <html> and <script> or between <script> or write directly the javascript?. Is .js the correct file extension for javascript files ?

Share this post


Link to post
Share on other sites

External Javascript files don't have any HTML in them. A .js extension is correct.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...