js点击弹出网页弹框

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title></title>
</head>
<body>
    <a href="#" onClick="openwin('a.html')">11</a> 
    <script LANGUAGE="JavaScript">  
function openwin(x)  
{ 
var str=x; 
window.open(str,"newwindow","height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")  
return false; 
} 
//window.open('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')   //该句写成一行代码
</script>  
</body>
</html>
原文地址:https://www.cnblogs.com/wsir/p/5991987.html