Results 1 to 3 of 3

Thread: Links in <script> tags in <iframes>

  1. #1
    Join Date
    Aug 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Links in <script> tags in <iframes>

    How do I get links (and form submissions) hard coded into <script> tags (I have no control of the .js file, by the way) which are located inside <iframes> to open in the parent window (or a new window) instead of the <iframe>?

    You can check it out here:
    http://www.traveltoromania.com/carrental

    The Car Rental form is inside an iframe. The URL for that is /if/carrental.html

    Just try submitting the form or clicking on a link from that form and you'll see what I mean. The subsequent page opens inside the iframe.

    /if/carrental.html contains only this:

    Code:
    <script language="JavaScript" src="http://service.bfast.com/bfast/script?bfmid=26917872&siteid=39877481&bfpage=dsf_1carwiz">
    
    </script>
    which is Expedia affiliate code. Now, the form and those links are hard coded inside that .js script they provide and I have no control of. I was wondering whether it is possible for me to get the form submission and the links from the <iframe> to open in the parent window or in a new window instead of the iframe, which is way too small.

    I've used more than 30 Google queries to find an answer to this one and all I could find were threads with questions such as mine but no answers.

    Thanks in advance,
    David

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    That page is completely generated by JavaScript. This is a horrible idea. Anyone with JS disabled can't even see anything! I suggest going about it a different route, then we can fix your issue.
    - Mike

  3. #3
    Join Date
    Aug 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Indeed, but that's Expedia's affiliate code that I can't change, not my own piece of work, so I'll have to solve this in spite of that code.

    That's the problem.

Bookmarks

Posting Permissions

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