I have been using a piece of third party code to grab the URL's of pages loaded into a frame to allow me to bookmark them into a database for an Intranet project I am working on. All works well until I load a Word doc or Excel doc and then it does not, some times I get an error message saying "permission denied" Is I can get this to work? Any help would be deeply appreciated,
The script I'm using is as listed bellow,
Thanks in advance for any help

function showLoc(form,item) {
var Bookmark = parent.frames[2]
var windName = item.value
var theRef = windName + ".document"
form.dLoc.value = unescape(eval(theRef + ".URL"))
form.dTitle.value = unescape(eval(theRef + ".title"))