看板 Web_Design 關於我們 聯絡資訊
我做了一個最簡單的按鈕type=button 想要按下去之後連結到 A.htm, target是 _self 試過三種寫法都失敗了 每種寫法按下去後仍然停留在本頁,沒有跳到 a.htm 請前輩指點一下哪些地方寫錯了,謝謝 寫法一 <Input type="button" value="q" onClick="window.location.href='a.htm'"> 寫法二 <Input type="button" value="q" onClick="woondow.open('a.htm','_self')"> 寫法三 <a href="a.htm" target="_self"> <Input type="button" value="q"> </a> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.248.30.206
ms01:試試onclick="top.navigate('./a.htm');"......^^ 12/15 15:03