php登錄成功跳轉(zhuǎn)頁面代碼 PHP怎么實現(xiàn)一單擊按鈕就跳轉(zhuǎn)到令一個頁面?
PHP怎么實現(xiàn)一單擊按鈕就跳轉(zhuǎn)到令一個頁面?使用onclick直接點擊按鈕=“window.location.href=“要跳轉(zhuǎn)到”“的站點,例如:<input type=”“button”“va
PHP怎么實現(xiàn)一單擊按鈕就跳轉(zhuǎn)到令一個頁面?
使用onclick直接點擊按鈕=“window.location.href=“要跳轉(zhuǎn)到”“的站點,例如:<input type=”“button”“value=”“跳轉(zhuǎn)到”“onclick=”window.location.href=“A.php”/>或使用click函數(shù)傳入值:<input type=“button”value=“jump”onclick=“Tiao(“A.php”)”/><script type=“text/JavaScript”>函數(shù)條(URL){window.location.href=url//根據(jù)地址跳轉(zhuǎn)}</script>
php點擊按鈕跳轉(zhuǎn)頁面?
按鈕的onclick事件,你最好用JavaScript寫一個響應(yīng)函數(shù),而不是直接寫跳轉(zhuǎn)
一直這樣寫不容易