|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I've inherited an existing application that uses onClick extensively with the <a href> tag. In this piece, one version of the code populates the center by calling an external include file (tbsPage.inc). The other version will drop a list of items below the link. I would like to be able to do both. This is the piece that calls an external include file (tbsPage.inc) and displays it in the center of the page: The other piece is below that.
<DIV><font FACE="Symbol">· </font><a href="#tbsPage" onClick="showSegment('tbsPage');return false">TBS</a></DIV> <DIV onclick="toggle('TBS')">TBS</DIV> I would like to be able to combine the functionality of these two into one. Thanks for any help. Bob |
|
#2
|
|||
|
|||
|
Just seperate the two statements with a ;
i.e. onClick="this.dosomthing;myfunction();" It should work Eclipce ------------------ 2 Samuel 7:10 Moreover I will appoint place for my people Israel, and will plant them, that they may dwell in a place of their own, and move no more; neither shall the children of wickedness afflict them any more, as beforetime, |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Can I run 2 events from a single onClick? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|