我有一个PHP函数,在点击输入按钮之后,在真正的重定向完成之前,在隐藏的iframe中重新载入一个页面。把javascript的输入标签放在php函数中:)
function button_confirm_order_params() {
$url = "somepagetoreloadinbackground.php";
$alert = "alert('you will be redirected to ext. page')";
return "onclick=\"document.all.myFrame.src='$url'; $alert;\"";
}
一切正常,但我想使用比浏览器警报更美丽的东西。 这是可能的在那里放任何JavaScript,所以我将能够显示一个好看的弹出窗口?这是所有内部>输入<标签,我不知道,如何通过。
谷歌:http://t4t5.github.io/sweetalert/
还是我的最爱toastr一个http://t4t5.github.io/sweetalert/ – apokryfos