You are on page 1of 1

<script>

function callme()
{
document.getElementById("me").innerHTML="This should appear";
}
</script>
<input type="button" value="Click" onclick="callme()" />
<h1 id="me">Haha</h1>
_________________________________________________________________________________

function callme()
{
document.getElementById("me").src="index_r1_c1.jpg"
-}
</script>
<input type="button" value="Click" onclick="callme()" />
<img src="" id="me" />
<script>
_________________________________________________________________________________

for (a=0;a>=-12;a=a-2)
{
document.write(a,"<br>")
}
document.write("The loop has stopped")
</script>
<script>
function callme()
{
for(a=0;a<=12;a++)
{
document.write("<tr><td>")
document.write(a)
document.write("<td>")
document.write(a*a)

}
}
</script>

<table border="12">
<script>
callme()
</script>
</table>

You might also like