2 calls onclick javascript

andehlu

this modern love
<a href="#" onClick="this.style.display = 'none'; note1_button.style.display = 'all'">

Does anyone now how to make 2 calls (not functions) onclick? I think Im getting messed up in a syntax issue.... with the code above it only executes the first call....

thanks
 
Have you tried two onClick statements? Or, you could make a function that includes the two calls, and execute that onClick.
 
It'd probably be better to wrap those 2 lines of code into a function in your <head>, and then call that function, instead of embedding the code inside the HTML (not really good style). This way you keep all your code in 1 place, and design in another.
 
Back
Top