Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

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
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back