Tested document.ready and onclick event.