# Iframe permission problems

**URL:** <https://www.ruby-forum.com/t/iframe-permission-problems/110252>\
**Category:** Rails\
**Created:** [July 24, 2007, 5:23pm UTC](https://www.ruby-forum.com/t/iframe-permission-problems/110252 "2007-07-24T17:23:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [July 24, 2007, 5:23pm UTC](https://www.ruby-forum.com/t/iframe-permission-problems/110252/1 "2007-07-24T17:23:30Z")

</div>

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…
