+ 5

Can anyone tell the format of js...like in html it is <html>.....</html>...so as to save it in .js format

8th Aug 2017, 11:03 AM
A N S H U L S I N G H
A N S H U L   S I N G H - avatar
3 Antworten
+ 4
There is no special 'format' for external js files: just save them in text file format with the same content as if you embed it in <script> tag (but without tags ^^)... There's neither a mandatory extension, even if usualy used is '.js' ;)
8th Aug 2017, 6:02 PM
visph
visph - avatar
+ 1
You basically do this: For External = <script src="yourURL"/> ************ For internal = <script> Your code here for JS </script>
8th Aug 2017, 12:56 PM
Iwan
Iwan - avatar
- 2
<html> <head> <title> </title> </head> <body> </body> </html>
9th Aug 2017, 3:22 AM
Avadhesh YADAV
Avadhesh YADAV - avatar