SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: place button in javascript
-
Dec 3, 2003, 14:03 #1
- Join Date
- Nov 2000
- Posts
- 123
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
place button in javascript
I try to change the text link to button in the uebimiau mail script:
In readmsg.htm, below is the code to click to reply, reply to all, forward and so on:
<a class="menu" href="javascript:goback()">Back</a> ::
<a class="menu" href="javascript:reply()">Reply</a> ::
<a class="menu" href="javascript:replyall()">Reply to All</a> ::
<a class="menu" href="javascript:forward()">Forward</a> ::
I try to place a button instead of the link to make it easier to see, so I did this with the Reply to All button:
<a class="menu" href="javascript:replyall()"><input type="button" value="Reply to All"></a>
However, it doesn't work, the button is there, but nothing happen when I click on it. I don't know anything about javascript, please help.
-
Dec 3, 2003, 14:13 #2
- Join Date
- Nov 2000
- Posts
- 123
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Never mind, I think I found out how, correct me if I'm wrong:
<input type=button onClick=replyall() class=menu>
-
Dec 3, 2003, 14:54 #3
- Join Date
- Jul 2002
- Location
- Dallas, TX
- Posts
- 2,900
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Looks good to me, but I'd put double quotes around your attribute values
<input type="button" onClick="replyall()" class="menu">
Bookmarks