Blog之运行框

核心函数:

< script type = " text/javascript " >
function  runCode(obj) {
     
var  winname  =  window.open( '' " _blank " '' );
     winname.document.open(
' text/html ' ' replace ' );
     winname.document.write(obj.value);
     winname.document.close();
}
< / script>

 

示例:


转载于:https://www.cnblogs.com/return/archive/2009/11/01/1594233.html

你可能感兴趣的:(Blog之运行框)