author | ivanl |
Tue, 09 Mar 2010 10:34:58 +0000 | |
changeset 20 | 918767a9c8d3 |
parent 7 | 97dcd250e5be |
permissions | -rw-r--r-- |
7
97dcd250e5be
checking in an application written by Ivan Litovski. If you're going to OSCon, this is a must.
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
1 |
<html> |
97dcd250e5be
checking in an application written by Ivan Litovski. If you're going to OSCon, this is a must.
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
2 |
<body> |
97dcd250e5be
checking in an application written by Ivan Litovski. If you're going to OSCon, this is a must.
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
3 |
<script language="JavaScript"> |
97dcd250e5be
checking in an application written by Ivan Litovski. If you're going to OSCon, this is a must.
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
4 |
function function1() { |
97dcd250e5be
checking in an application written by Ivan Litovski. If you're going to OSCon, this is a must.
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
5 |
var myElement = document.createElement('<div style="width:300; height:200;background-color:blue;"></div>'); |
97dcd250e5be
checking in an application written by Ivan Litovski. If you're going to OSCon, this is a must.
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
6 |
document.all.myDiv.insertBefore(myElement); |
97dcd250e5be
checking in an application written by Ivan Litovski. If you're going to OSCon, this is a must.
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
7 |
} |
97dcd250e5be
checking in an application written by Ivan Litovski. If you're going to OSCon, this is a must.
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
8 |
</script> |
97dcd250e5be
checking in an application written by Ivan Litovski. If you're going to OSCon, this is a must.
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
9 |
<button id="myButton" onclick="function1();">Insert element</button> |
97dcd250e5be
checking in an application written by Ivan Litovski. If you're going to OSCon, this is a must.
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
10 |
<div id="myDiv" style="width:300; height:200;"></div> |
97dcd250e5be
checking in an application written by Ivan Litovski. If you're going to OSCon, this is a must.
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
11 |
</body> |
97dcd250e5be
checking in an application written by Ivan Litovski. If you're going to OSCon, this is a must.
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
12 |
</html> |