Difference between revisions of "Main Page"

From ProgZoo
Jump to navigation Jump to search
Line 11: Line 11:
* [[DOM working with data]]
* [[DOM working with data]]
* [[DOM content from lists]]
* [[DOM content from lists]]
==Hello World, JavaScript==
<div class='qu'>
What is 6 times 7?
<pre class='usr'>
alert(6 * 7);
</pre>
<pre class='ans'>
alert(6 * 7);
</pre>
</div>


==Change Content==
==Hello World==
<div class='qu'>
<div class='qu'>
Where's Wally?
Hello World
<pre class='usr'>
<pre class='usr'>
document.body.innerHTML = 'Wally was here';
document.body.innerHTML = 'Hellow orld';
</pre>
</pre>
<pre class='ans'>
<pre class='ans'>
document.body.innerHTML = 'Wally was here';
document.body.innerHTML = 'Hello world';
</pre>
</pre>
</div>
</div>

Revision as of 10:59, 28 August 2021

Drawing images

Manipulating DOM

Hello World

Hello World

document.body.innerHTML = 'Hellow orld';
document.body.innerHTML = 'Hello world';