Ok now it's more clear. In order to open a new page on notification opened, i
can set window.location="page2.html" in onNotification method?

You could, although I would suggest using a javascript framework to write your client app

--
Cheers,
       Erik Jan