PHP彈出對話方塊技巧詳細解讀

2022-10-06 10:06:06 字數 1292 閱讀 2277

1. php彈出對話方塊

< ?php

echo "< script language=

\"j**ascript\">alert

(\"你好\");< /script>";

?>

//或者

< ?php

print "< script language=

\"j**ascript\tvpadk">alert

(\"你好\");< /script>";

?>

2. 如果需要php彈出對話方塊之後返回原來頁面可以這麼寫

< ?php

echo "< script language=

\"j**ascript\">\r\n";

echo " aler程式設計客棧t(\"你好\");\r\n";

echo " history.back();\r\";

echo "< /script>";

exit;

?>

//或者

< ?php

print 程式設計客棧"< script language=

\"j**ascript\">\r\n";

print " alert(\"你好\");\r\n";

print " history.back();\r\n";

print "< /script>";

e ?>

3. 如果需要php彈出對話方塊之後用新的頁面替換原來的頁面(更換當前歷史紀錄),原來頁面可以這麼寫

< ?php

echo "< script language=

\"j**ascript\">\r\n";

echo " alert(\"你好\");\r\n";

echo " location.replace

(\"");

\r\n"; // 自己修改**

echo "< /script>";

exit;

?>

或者< ?php

print "< script language=

\"j**ascript\">\r\n";

print " alert(\"你好\");\r\n";

print " location.replace

(\"");

\r\n"; // 自己修改**

print "< /script>";

exit;

?>

本文標題: php彈出對話方塊技巧詳細解讀

本文位址:

彈出對話方塊

先定義 private view view private alertdialog mprotocoldialog 彈出對話方塊 private void loadprotocol mprotocoldialog new alertdialog.builder this settitle getst...

彈出對話方塊

call function popup to confirm exporting titlebar diagnose object text question anything else?text button 1 yes?icon button 1 15 text button 2 no 002 ...

彈出對話方塊

data answer 20 type c.call function popup to confirm exporting titlebar diagnose object text question anything else?text button 1 yes?icon button 1 15...