iframes and parent.document

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
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
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back