1. A method of handling messages in a Web application comprising: inserting a message handler in a top level document of the Web application; inserting a writeable block in a window in a first page of the Web application, the writeable block for receiving a message generated by the Web application; and inserting a message script in a second page of the Web application, if a message is generated by the Web application for display in response to an execution of the second page, wherein the message handler is invoked in response to the message script.