我有一個PHP/HTML按鈕誰是鏈接到的OnClick按鈕不轉發到URL
<a href="#" data-mini="true" data-role="button" onClick="window.open('../index.php', '_self');"><? echo "Login"; ?></a>
現在我想切換到其他鏈接網址www.button.com/index.html
我改變了國家統計局爲:
<a href="#" data-mini="true" data-role="button" onClick="window.open('www.button.com/index.html', '_self');"><? echo "Login"; ?></a>
第二個URL位於其他文件夾中的同一臺服務器上,但點擊按鈕不轉發即可鏈接。
諸如'www'的外部URL調用需要'http://',即使它位於同一臺服務器上。您現在可以刪除該問題。 –