|
1 <html class="reftest-wait"> |
|
2 <head> |
|
3 |
|
4 <script> |
|
5 |
|
6 function init() |
|
7 { |
|
8 var ww = document.getElementById("ww"); |
|
9 var inp = document.getElementById("inp"); |
|
10 |
|
11 document.addEventListener("DOMNodeInserted", u, false); |
|
12 |
|
13 document.body.appendChild(ww); |
|
14 |
|
15 function u() |
|
16 { |
|
17 document.removeEventListener("DOMNodeInserted", u, false); |
|
18 ww.removeChild(inp); |
|
19 document.documentElement.removeAttribute("class"); |
|
20 } |
|
21 } |
|
22 |
|
23 </script> |
|
24 |
|
25 </head> |
|
26 |
|
27 <body onload="init()"><div id="ww"><input type="text" value="inputtext" id="inp">moretext</div></body> |
|
28 |
|
29 </html> |