<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>JS让弹出的窗口始终在最上面_网页代码站(www.webdm.cn)</title>
</head>
<body>
<input type="button" name="Button" value="显示窗口" onClick="newform()">
<script language="JavaScript">
var name;
function newform(){
name=window.open("","","width=300,height=200");
name.document.write('<input name="p_w_picpathField" type="p_w_picpath" src="/p_w_picpaths/wall2.jpg" width="280" height="180" border="0">');
show(name);
}
function show(name){
try{
name.document.focus();
setTimeout("show(name)",1);
}
catch(e){}
}
</script>
<br>
<p><a href="http://www.webdm.cn">网页代码站</a> - 最专业的网页代码下载网站 - 致力为中国站长提供有质量的网页代码!</p>
</body>
</html>
转载于:https://blog.51cto.com/sanye/1329459