Keep track of SharePoint page movements

To make the Close buttons work properly in SharePoint, just add this piece of JavaScript in your hyperlinks:


<a href="/Docs/Lists/Announcements/DispForm.aspx?ID=1" 
onclick="GoToLink(this);return false;">View item</a>

(Thanks to http://kwizcom.blogspot.com/2008/07/how-to-add-source-parameter-to.html for the tip!)