A method and system for validating access to a group of related elements
are described. The elements within the group access a security context
associated with a markup domain when a call is made to an element. An
authorized call to an element is enabled such that the markup domain is
navigated to a new web page. However, an unauthorized call is prevented
so that the navigation to the new web page is not permitted. After the
markup domain has been navigated, the security context associated with
the markup domain is invalidated. A new security context is generated and
associated with the markup domain. The elements associated with the web
page navigated from are inaccessible after navigation of the markup
domain to the new page. The association of the new security context with
the markup domain prevents an unauthorized user from accessing any
element that references the previous security context.