我是一个noober,我还不想学习jquery。我想要一个警报样式弹出对话框,其中包含两个链接,一个或另一个链接。如果你们中任何一个天才经历过obi-wan类型可以帮助我会非常感激。
答案 0 :(得分:1)
这是一个非常简洁明了的方法:
if (confirm("Go to Google?"))
window.location.href = "http://www.google.com";
else if (confirm("Go to Bing?"))
window.location.href = "http://www.bing.com";
else
alert("Not going anywhere");