php按鈕代碼 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//跳到}</script>
~]<InputType=“button”根據(jù)傳遞的地址單擊window.location.href=" 登錄.php“”value=”click jump“>直接在按鈕上使用onclick=”window.location.href=“站點跳轉(zhuǎn)到“”例如:<InputType=”button “value=”jump “onclick=”window.location.href=“A.php”“/>或使用click函數(shù)傳入值:<inputtype=”button“value=”jump”onclick=”Tiao(”A.php“)”/><scripttype=”text/JavaScript“>functiontiao(url){window.location.href=url//跳轉(zhuǎn)到地址}</script>