+ 5
Can anyone tell the format of js...like in html it is <html>.....</html>...so as to save it in .js format
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' ;)
+ 1
You basically do this:
For External =
<script src="yourURL"/>
************
For internal =
<script>
Your code here for JS
</script>
- 2
<html>
<head>
<title>
</title>
</head>
<body>
</body>
</html>