php登錄成功跳轉(zhuǎn)頁(yè)面代碼 PHP怎么實(shí)現(xiàn)一單擊按鈕就跳轉(zhuǎn)到令一個(gè)頁(yè)面?
PHP怎么實(shí)現(xiàn)一單擊按鈕就跳轉(zhuǎn)到令一個(gè)頁(yè)面?使用onclick直接點(diǎn)擊按鈕=“window.location.href=“要跳轉(zhuǎn)到”“的站點(diǎn),例如:<input type=”“button”“va
PHP怎么實(shí)現(xiàn)一單擊按鈕就跳轉(zhuǎn)到令一個(gè)頁(yè)面?
使用onclick直接點(diǎn)擊按鈕=“window.location.href=“要跳轉(zhuǎn)到”“的站點(diǎ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點(diǎn)擊按鈕跳轉(zhuǎn)頁(yè)面?
按鈕的onclick事件,你最好用JavaScript寫(xiě)一個(gè)響應(yīng)函數(shù),而不是直接寫(xiě)跳轉(zhuǎn)
一直這樣寫(xiě)不容易