Note: We have used the top element instead of the window element, because we use frames. If you do not use frames, use the window element instead.
This example works only in Internet Explorer and Safari.