Main Page: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
* [[DOM Creating content]] | * [[DOM Creating content]] | ||
* [[DOM working with data]] | * [[DOM working with data]] | ||
* [[DOM content from lists]] | |||
==Hello World, JavaScript== | ==Hello World, JavaScript== | ||
<div class='qu'> | <div class='qu'> |
Revision as of 07:28, 26 August 2021
Drawing images
- Flags with Rectangles
- Flags with Lines
- Flags with Polygons
- Flags with Stars
- Flags with Repeats
- Flags with Methods
Manipulating DOM
1) Hello World, JavaScript
What is 6 times 7?
Input
xxxxxxxxxx
alert(6 * 7);
Output
alert(6 * 7);
alert(6 * 7);
2) Change Content
Where's Wally?
Input
xxxxxxxxxx
document.body.innerHTML = 'Wally was here';
Output
document.body.innerHTML = 'Wally was here';
document.body.innerHTML = 'Wally was here';