Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Prevent iframe redirect to parent window

    if i try iframe'ing this site(http://thibautdesign.com/) it doesn't work , it automatically redirects the site to the parent window.
    this may be due to the some script code in that site ...

    pls. help on how to iframe this site

    http://thibautdesign.com/

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,028
    Thanks
    75
    Thanked 4,325 Times in 4,291 Posts
    Can't do it without disabling javascript in your browser.

    Since the page is not coming from your site (from the same domain, that is), you aren't allowed to use JavaScript to affect the inner workings of the page, at all.

    It's called "cross domain scripting" and it was made illegal in browser really early on. Probably just to prevent people from doing things like you want to do. (No, not really...if you could script cross domains, you could grab keystrokes and so steal passwords, etc.)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •