An apparatus and method define one or more events that run a Java script
when a web page is bookmarked. In the preferred embodiments, a browser
determines whether a requested web page was requested from a bookmark,
whether the requested page is currently bookmarked, and whether the
requested page is the browser's home page. This information is sent along
with the page request so the web server can take appropriate action based
on this information. One or more events are defined that each run a
corresponding Java script to indicate when a page was loaded from a
bookmark, when a page is bookmarked, when a page is not bookmarked, and
when a page is the home page of the browser. The preferred embodiments
allow bookmark information to be communicated to a web server, which can
then use the bookmark information in a variety of ways. One preferable
way to use the bookmark information is to vary the presentation of the
web page depending on whether the page is bookmarked or not.