Java script in external file

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch
Impact
18
hi

can you guys tell me how cna i put java script in external file

can i put it in .js? if yes how?

regards
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Yes,

HTML:
<script src="filename.js" language="javascript"></script>
 
0
Close
ok great thanks..

and in js do i have to <script...></scirpt> tag also?
 
0
Close
no
 
0
Close
well I not necessary but I think you should It help the browser understand a little better. I m not sure but I think that's the reason otherwise why would programmers
be using it?
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back