edit
This commit is contained in:
parent
e78e527866
commit
05a93ced80
212 changed files with 3213 additions and 3968 deletions
|
@ -1,12 +1,8 @@
|
|||
The HTML code:
|
||||
|
||||
```html
|
||||
<!--+ src="index.html" -->
|
||||
```
|
||||
[html src="index.html"]
|
||||
|
||||
For the file `alert.js` in the same folder:
|
||||
|
||||
```js
|
||||
//+ src="alert.js"
|
||||
```
|
||||
[js src="alert.js"]
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
importance: 5
|
||||
|
||||
---
|
||||
|
||||
# Show an alert with an external script
|
||||
|
||||
[importance 5]
|
||||
|
||||
Take the solution of the previous task [](/task/hello-alert). Modify it by extracting the script content into an external file `alert.js`, residing in the same folder.
|
||||
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