Iframe permission problems


#1

I have some javascript code that’s meant to pull out the url and title
of whatever’s in an iframe:

top.iframe_name.location.href
top.iframe_name.document.title

However i’m getting this script error when i call the action (by
pressing a button at the moment, for testing purposes):

“uncaught exception: Permission denied to get property
HTMLDocument.title”

I can get the title ok for my main page (ie the one that holds the
iframe).

Does anyone know what might be the problem here? Thanks in advance…