This application claims the benefit of priority under 35 USC 119(e) to U.S. Provisional Application No. 60/904,358, filed Mar. 2, 2007, entitled “Integrity Checker for Web Browser Document”, all of which is incorporated herein by reference in its entirety.TECHNICAL FIELD
The invention relates to an apparatus and method that determines if a document associated with a web browser has changed.BACKGROUND OF THE INVENTION
Individuals and corporations expend significant resources to produce content for web pages. These producers of content want to ensure that their content is presented in a way that they envisaged. However, in today's online world it is now possible for content modifiers to sample web page content, reformat it and then re-present the content—often in ways that are disagreeable to the original content producer.
What is needed is a way for content producers to deploy web pages and ensure that their deployed web pages are not modified in an unauthorized manner at a client computing device.BRIEF SUMMARY OF THE INVENTION
A web browser is available on a computing device. A computer program product running on the computing device obtains first information associated with a document, the document associated with the web browser. In response to an event, the computer program product obtains second information associated with the document. The first information is compared with the second information and based on the comparison a second set of computer instructions is executed.
The event to which the computer program product responds can be any type of event such as the expiry of a timer or an event generated by the web browser. The execution of the second set of computer instructions may comprise issuing an instruction to the web browser, navigating the web browser, refreshing a page in the web browser, displaying a pop-up window or issuing an instruction to the Document Object Model associated with the document.
Other objects, features and advantages of the present invention will become apparent upon perusal of the following description in conjunction with the appended drawings.BRIEF DESCRIPTION OF THE DRAWINGS
The drawings constitute a part of this specification and include exemplary embodiments to the invention, which may be embodied in various forms. It is to be understood that in some instances various aspects of the invention may be shown exaggerated or enlarged to facilitate an understanding of the invention.
DESCRIPTION OF EMBODIMENTS
after this statement is executed, the variable stest will have first information associated with the document 120. Other ways of obtaining information associated with the document 120 are of course possible. The information obtained from the document 120 could be checksum information or watermark information or some other kind of encoded information.
In block 210, an event is detected. Any type of event may be detected in block 210, examples of such events include a timer expiry or an event associated with the web browser 110 such as a Document_Complete indication. In block 220, second information associated with the document 120 is obtained. Next, in block 230, the first information is compared with the second information. If the comparison in block 230 is favorable, no further action need be taken. If the comparison in block 230 is not favorable, then the method moves to block 240. In block 240, many types of actions can be taken such as navigating the web browser 110, refreshing a page in the web browser 110, displaying a pop-up window or issuing an instruction to the Document Object Model associated with the document 120.
The method illustrated in
While various embodiments have been described above, it should be understood that it has been presented by way of example only, and not limitation.