[SOLVED] combine 2 onlick events.

This is a discussion on "[SOLVED] combine 2 onlick events." within the JavaScript Forum section. This forum, and the thread "[SOLVED] combine 2 onlick events. are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Oct 14th, 2007, 12:53
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] combine 2 onlick events.

I would like the form buttons to reset their behaviour in IE so when you click them, they go back to normal. At the moment, when you click them, they look like they have been pressed and stay down.

I have found a way to do it but I already have an onclick event so I need to combine them both

this is what resets the button
Code: Select all
 
onclick="this.blur();
and this is one of my other buttons which I need to combine both onclick events
It is not in code tags becuase the code dissappears

<input type="button" class="sendbutton" value="bold" name="bold" onclick="javascript:tag('b', '', 'bold*', '', 'bold', 'bold');" onMouseOver="helpline('bold')" />

Last edited by AdRock; Oct 14th, 2007 at 12:56.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Oct 15th, 2007, 06:03
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: combine 2 onlick events.

onclick="tag('b', '', 'bold*', '', 'bold', 'bold');this.blur();"

You can separate function calls with a semi colon, just like you would between <script> tags.

Cheers,
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine two javascript longcroft JavaScript Forum 6 Jun 3rd, 2008 14:51
Date & Time [Combine] doctypedeclaration JavaScript Forum 3 Mar 12th, 2008 01:22
Coding help: Combine Insert into and If/else statement! skuliaxe PHP Forum 6 Jan 23rd, 2008 17:50
Recent Events JacobHaug Webforumz Cafe 0 Oct 8th, 2007 05:50
How can I combine two columns into one column using SQL gecastill Databases 2 Jun 3rd, 2005 18:23


All times are GMT. The time now is 11:18.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42