為什么我的還是有滾動條?
<!DOCTYPE html>
<html>
?<head>
? <title> new document </title>??
? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>? ?
? <script type="text/javascript">??
? ??
? ? function openWindow(){
? ? ? ? var open=confirm("是否打開新的網(wǎng)頁?");
? ? ? ? if(open==true){
? ? ? ? ?var newPage=prompt("請輸入打開的網(wǎng)址","http://idcbgp.cn") ;?
? ? ? ? ?if(newPage!=null){
? ? ? ? ? ? ?window.open(newPage,"_blank",'width=400px,height=500px,menubar=no,toolbar=no,scrollbars=no');}
? ? ? ? ?else{
? ? ? ? ? ? ? ? ?alert("bye")
? ? ? ? ? ? ?}
? ? }
? ? ? ? else{
? ? ? ? ? ? alert("再見")
? ? ? ? }
? ? }
? ??
? </script>?
?</head>?
?<body>?
? <input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />?
?</body>
</html>
2018-12-03
這是我自己寫的
function openWindow(){
??? var open=confirm("是否打開")
??? // 新窗口打開時(shí)彈出確認(rèn)框,是否打開
??? if(open==true){
??????? window.open('http://idcbgp.cn/','_balnk','width=400','height=500','menubar=no','toolbar=no');
??? }
??? else{
??????? alert("baibai")
??? }
2018-12-03
我引用你那段代碼,沒發(fā)現(xiàn)有滾動條