# Javascript issue

**URL:** <https://forum.kirupa.com/t/javascript-issue/236441>\
**Category:** Uncategorized\
**Created:** [August 20, 2007, 11:20pm UTC](https://forum.kirupa.com/t/javascript-issue/236441 "2007-08-20T23:20:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anothermethod](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@anothermethod](https://forum.kirupa.com/u/anothermethod)\
**Post date:** [August 20, 2007, 11:20pm UTC](https://forum.kirupa.com/t/javascript-issue/236441/1 "2007-08-20T23:20:36Z")

</div>

Hello - I have a button that has a (a href) and a (onclick) on it which control two different java functions.

When you press the button only one of the functions is activated.

I check each function on their own and they work fine… I just get snagged when I combined them onto one button.

Please help if you can!!

Here is the code;

\<[COLOR=Red]a href[/COLOR]="javascript:change\_image(‘detail’,‘images/Sunriver\_2.jpg’); "[COLOR=Red]onclick[/COLOR]=“togLayer(‘thumbnails\_featured2’);return false;”\>\<img src=“images/sunriver\_2.gif”/\>  
\</a\>
