Adding event to web page.