You can use the eventlistener with the function in the command like this:
Code:
invisiButton.addEventListener(MouseEvent.CLICK, function(){getURL("anotherpage","_self")});