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
    Regular Coder
    Join Date
    Oct 2005
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Forcing links in an iframe(src=notmine) to open in a new page

    hi, id like to include an iframe in my site, the src of the iframe is from another site.

    the problem is that all the links in the site will open in the iframe, causing problems. the iframe is only suitable for the page im aiming at.

    is it possible to force all the links to open in a new window?

    remember, i dont have access to the iframe src.

    none of the links in it have names, classes or targets.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Either way you would need javascript and for security reasons JS can't go across domains so to answer your question. No you can't.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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