Aaron Tulin

Aaron Tulin
Direct: 404.936.4856
aarontulin@remax.net
Download vCard
Open a separate chat window

Saturday, October 20, 2007

Firefox Error: Permission denied to get property HTMLDocument.location

I just came across an error in one of my sites that uses JavaScript to change what is displayed in an iframe when the user hits a button. Anyway, my original code looked like

document.iframe.location='url to be displayed';

This works fine in explorer but Firefox's error console kept coming up with; "uncaught exception: Permission denied to get property HTMLDocument.location". After a little searching I found the solution.

parent.iframe.location.href='url to be displayed';

If you run across this same error I hope this helps.

Labels: ,

4 Comments:

Anonymous Anonymous said...

Thanks man, that totally got me out of a jam!

9:37 PM  
Anonymous Anonymous said...

thanks, this fixed everything!
Cheers mate!

2:15 PM  
Anonymous Anonymous said...

Thanks dude!

12:19 PM  
Anonymous Anonymous said...

Thanks!

4:42 PM  

Post a Comment

<< Home