GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — java/professional-javascript/Ch11/InnerHtmlExample03.htm at master · luoyonggit/java Expand file tree/ Copy pathInnerHtmlExample03.htmMore file actions 20 lines (18 loc) · 524 Bytes / Copy pathInnerHtmlExample03.htmFile metadata and controls20 lines (18 loc) · 524 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 <!DOCTYPE html> <html> <head> <title>InnerHtml Example</title> </head> <body> <div id="content"></div> <p>This works in IE only.</p> <input type="button" value="Set InnerHTML" onclick="setInnerHTML()"> <script type="text/javascript"> function setInnerHTML(){ var div = document.getElementById("content"); div.innerHTML = "<div> </div><script defer>alert('hi');</scr" + "ipt>"; div.removeChild(div.firstChild); } </script> </body> </html> |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |