iframes and parent.document

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Crusader

Established Member
Impact
6
Code:
<script type="text/javascript"><!--
document = parent.document;
//--></script>

I have the above code contained in an iframe. It loads on both Firefox and Internet Explorer but it gives me an "Access Denied" error in the loading bar (bottom left hand of the screen) after the page loads on Internet Explorer.

Any ideas on how to fix this?

Thanks.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
What is it being used for? Could you post the other code? :tu:

Dan
 
0
Close
It's basically just an iFrame that loads the above code followed by Adsense code.

HTML:
<iframe id="a780ee65" name="a780ee65" src="urlOfIframe.php" frameborder="0" scrolling="no" width="300" height="250"><a href="linkHere.php" target="_blank"><img src="imagehere.jpg" border="0" alt="" /></a></iframe>

urlOfIframe.php
HTML:
<script type="text/javascript"><!--
document = parent.document;
//--></script>
<!-- google adsense code etc -->
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back