javascript弹窗基础篇

时间:2021-05-09 04:59:45

confirm()意既确认框

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>confirm</title>
</head>
<body>
<script>
var con=confirm("do you like to study javascript?");
if (con) {
document.write("I love javascript!");
}
else{
document.write("I love other lanuages!");
}
</script>
</body> </html>

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbAAAACZCAIAAADB+Pg3AAAVXklEQVR4nO3d31NTZ+LH8fwDueGiM71iZmd2nL1wU3c6MktZu4sSxlIYskNqZkcHWgPSqiiwVilGk122tgsLVTQVV1ZCgtJ0ZUVcER2B8GOMdcAIMf6AAvIjPaQY8guSc04I34vn7DHfQBHwiAU/r/FCwknynEN4+zznBBSxAADAsizLil71AAAAfi4QRAAADoIIAMBBEAEAOAgiAAAHQQQA4CCIAAAcBBEAgIMgAgBwEEQAWMuOHz9eXl7u9XrJh16vt7y8/Pjx4/NujCACwFpWXl6el5dXWlrq9Xq9Xm9paWleXl55efm8GyOIALCWeb3esrIy0kRSQxLHeTdGEAFgjeObuHANWQQRANY8fqX8soJoMpkyMzM9Hg/Lslarddu2bRRFhW/g8XgyMzNFz0MeRKfTPXdLQqfTsSxLUZRUKl1gM4lEYrVa+aEu8mEBYO3ha1haWsqvnQVeMi8yiCaTaZEPEqGxsTE9Pd3lcs17R4qitm3bxidvSZ8FgNdKxEUV0kSBL6r8VBDtdntubu6jR49IEEtLS8+fP88wjNPpzMnJuXv3Lrn78PDw7t27DQbDvEEMBAKHDh26ePHiTz37kmaIAPA6e4lvu9HpdGq1mv2JIPb29m7durW6upqmaRLExsbGTz/91GazWSwWhUKh0Wi6urpYlm1qasrKympsbOQf5LlLbKlUyk9CMUMEgJdh+UHkU5Wfn5+Wlnb27NlNmzaZTCaGYdiwJbPZbD506NCJEydKSkpsNltOTo7D4SgsLDQajeFVXXiJHbEqX2QQF3kek5h3rmo2myUSidlsXtJRAoBVSpgZokQiSU1N7e/v57fkA+fz+fLy8iQSicViYRjm66+/Vi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C1GHFgpifn19bW3v69OnU1NTNmzd/8803V65c+cMf/vCPf/xjamqKHJY9e/aMjIxghgiwOggSRIqiEhMTGxsbnU7nlStX0tLSJiYm9Hr9jh07Hjx4sGXLFr1eT1GUXC5/8803JRLJlStXDh8+HLFkFuo9KCsTxMLCwoyMDIPBMDAwUFVVdfPmzcrKytzcXI/HU1NT89VXX3k8HovFQm6ZO0MMhULnzp1DEAF+XgQMYltbWyAQOHz4cG5u7tTUlF6v/+Mf/5iUlCQWizs7O6uqqn71q191dHTs27dv3qvMarVakDqsTBDJW4VCoVAwGNTr9Tt37jx16lQgEGBZNhgMGgwGrVZ76dKlkydPMgxDgkjeht3b2/vrX/9aJBJ98MEHQ0NDguwyggggDEGCyLIs/0bC9vb2xsZGcoE1GAzevXv33r17LMu2trYajcZgMDgzM/Pw4cOWlpazZ89+EcZmswlSh5X/WWY+jvwkl1xcJm+xpGk6GAzOzs6Sz5K/E0JdR0IQAYQh+M8yk/Uv+TvDMMFgkHzb83WgaZpkMeL/BlldV5l/PhBEAMHgt92sdggigGAQxNUOQQQQDIK42iGIAIJBEFc7BBFAMAjiaocgAggmpcg56WVDa4XLxyYXPef/VLl27Zrf73/VIxWM3++/du3asl8ACCLAM43mH7ceGY3Z/33M/v7V/+f794+ONZp/XHiXHz9+XF9ff/78+ZrV7/z58/X19Y8fP172CwBBBHhmampqfHx8bK0YHx+fmprCLi8egggAwEEQAQA4CCIAAAdBBADgIIgAABwEEQCAgyACAHAQRAAADoIIAMBBEAEAOAgiAAAHQQQA4CCIAAAcBBEAgIMgAgBwEEQAAA6CCADAQRABADgIIgAAB0EEAOAgiAAAHJEBAAAMBoPBIOoEAIDOzs7OTpEVAACsVqvVKpoFAIDZ2dnZWQQRAICDIAIAcBBEAADO/wGlbclnfioFigAAAABJRU5ErkJggg==" alt="" />

prompt意既消息提示框

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>confirm</title>
</head>
<body>
<script>
var pro=prompt("what is your name?");
document.write(pro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Cc6h2qQjynDp/9lMp+gTZWIHKoATCQihyoAE4nIoQrARCJyqAIwkYgcqgBMJCKHKgATicihCsBEInKoAjCRiByqAEwkIocqABOJyKEKwEQicqgCMJGIHKoATCQihyoAE4nIoQrARCJyqAIwkYgcqgBMhMyhut1uv3//7no4APwu37592263NA7V9/f33W6XAfDi7Ha7r3+/j5N8jkNVlxcEIjDUwDkO1aLk+jsQiMAgA+c4VIuS65kWAhEYZOAch6oaVSUEIjCkwDkOVaWUkAqBCAw1cI5D9ViUrQoRiMDwAuc4VMtKtPUIgQgML3DOHR96G4EIDDVwjkNVN0YgAkMNnONQ3R+KsuIIRGCogf8B+HZK4N/F2PIAAAAASUVORK5CYII=" alt="" />

window.open(uri,name,attr)

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>confirm</title>
</head>
<body>
<a href="#" title="http://www.cnblogs.com/yuzheCyril/">click me</a>
<script>
var link=document.getElementsByTagName("a")[0];
link.onclick=function(){window.open(link.title,"blog","width=400px,height=400px");}
</script>
</body> </html>

window.close()关闭窗口