work
This commit is contained in:
parent
6522852dc7
commit
88bd9889a2
92 changed files with 4044 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
alert("I'm JavaScript!");
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<body>
|
||||
|
||||
<script src="alert.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,8 @@
|
|||
The HTML code:
|
||||
|
||||
[html src="index.html"]
|
||||
|
||||
For the file `alert.js` in the same folder:
|
||||
|
||||
[js src="alert.js"]
|
||||
|
|
@ -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.
|
Loading…
Add table
Add a link
Reference in a new issue