This commit is contained in:
Ilya Kantor 2016-05-26 12:43:54 +03:00
parent 6522852dc7
commit 88bd9889a2
92 changed files with 4044 additions and 0 deletions

View file

@ -0,0 +1 @@
alert("I'm JavaScript!");

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<body>
<script src="alert.js"></script>
</body>
</html>

View file

@ -0,0 +1,8 @@
The HTML code:
[html src="index.html"]
For the file `alert.js` in the same folder:
[js src="alert.js"]

View file

@ -0,0 +1,9 @@
importance: 5
---
# Show an alert with an external script
Take the solution of the previous task <info:task/hello-alert>. Modify it by extracting the script content into an external file `alert.js`, residing in the same folder.
Open the page, ensures that the alert works.