【发布时间】:2018-06-05 22:06:44
【问题描述】:
我确实让这个工作正常,但现在我改变了我的 html 标记,我认为我缺少总和的东西,
代码解释了这一切,但如果没有得到确认,它不会阻止默认。
谁能看出问题出在哪里,
非常感谢您提供任何信息。
谢谢
<?
if (!empty($facebook)) {echo"<a href='#'onClick=\"facebookalert(); MyWindow=window.open('{$facebook}','MyWindow','width=365,height=300'); return false;\"></a>"; }
?>
function facebookalert(){
if (confirm("You will be Forwarded to the sellers FACEBOOK account to make contact\nYou can return to this website as this window will not close\nThank you")) {
} else {
event.preventDefault();
return false;
}
};
【问题讨论】:
标签: php html css jscript confirm