Link with 2 actions

Hello, I was wondering if it was possible to make a link with too actions.

For example, I have a hidden span which opens up using javascript once you click on a link.

I was wondering if I could have the link do the following:
unhide the span and then scroll down to the anchor.

so… it would be <a href=“javascriptcall & #anchor”>

What’s the syntax?