<textarea cols="70" rows="20" id="code"></textarea> <script type="text/javascript"> <!-- function openWindow() { newWindow = window.open('','newWindow','height=300,width=500,scrollbars=auto'); if (newWindow != null) { var windowHTML= document.getElementById('code').value; newWindow.document.write(windowHTML); newWindow.focus(); } } //--> </script> <br /><br /> <input value='预览代码' οnclick="openWindow();" type="button" />
Javascript预览代码
最新推荐文章于 2024-03-31 09:36:01 发布