2009-09-30 02:18:20 +04:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
|
|
function boom()
|
|
|
|
{
|
|
|
|
var sel = document.createElementNS("http://www.w3.org/1999/xhtml", "select");
|
|
|
|
var opt;
|
|
|
|
for (var i = 0; i < 43; ++i) {
|
|
|
|
opt = document.createElementNS("http://www.w3.org/1999/xhtml", "option");
|
|
|
|
opt.appendChild(document.createTextNode(i));
|
|
|
|
sel.appendChild(opt);
|
|
|
|
}
|
|
|
|
opt.selected = "selected";
|
|
|
|
document.getElementById("div").appendChild(sel);
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
2011-01-21 09:05:48 +03:00
|
|
|
<body onload="boom();"><div id="div"></div><embed type="application/x-test"></embed></body>
|
2009-09-30 02:18:20 +04:00
|
|
|
</html>
|