<HTML>
<HEAD>
<script src="prototype.js"></script>
<script language=javascript>
function test()
{var myvar = $('test');
var win = window.open("","mywin", "menubar=no,width=400,height=100,resizeable=yes");
win.document.writeln("<title>input</title>");
win.document.writeln("§Aªº«H®§¬O¡G<p>");
win.document.writeln(myvar.innerHTML);
win.document.close();
win.focus();
}
</script>
<script language="javascript">
<!--
function test1()
{
var result=showModalDialog(" ",window,"dialogWidth:"+100+"px;dialogHeight:"+100+"px;help:no;scroll:no;status:no");
alert(result)
}
-->
</script>
</HEAD>
<body>
<div id="test">CC
</div>
<input type=text name=text size=50>
<input type=button value=´£¥æ onClick="test1()">
</body>
</html>
最后
以上就是快乐猫咪最近收集整理的关于javascript 交互的全部内容,更多相关javascript内容请搜索靠谱客的其他文章。
发表评论 取消回复