網頁語法html 如何加按鈕?

2008-02-10 1:57 am
<input type=button value="字串" onClick="window.open('所要開啟的網址','sliderdemo');" name="button">

我上網睇個個網都話用呢個語法,
但係我用唔到...
按按鈕新網頁不彈出來...
help me please!

ps.我知<>要用半形~
更新1:

都是不行啊...連個button都唔見左...=w=

回答 (1)

2008-02-10 3:42 pm
✔ 最佳答案
<input value="按鈕" onclick="window.open('http://hk.yahoo.com');" name="button" type="button">

2008-02-10 07:44:03 補充:
你個type = button 應該係有double quote

2008-02-14 13:32:02 補充:
你有沒有放左body裡面ar??你可以去http://geocities.com/jonnynch/test.htm , 然後right click- 檢視原始檔

2008-02-14 13:33:15 補充:
因為yahoo 的問題, &quot; 其實是double quotation

2008-02-14 13:35:18 補充:
& quot ; is &quot;


收錄日期: 2021-04-19 00:28:02
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20080209000051KK01862

檢視 Wayback Machine 備份