View Full Version : Links in <script> tags in <iframes>

08-31-2006, 03:02 PM
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:

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:

<script language="JavaScript" src="http://service.bfast.com/bfast/script?bfmid=26917872&siteid=39877481&bfpage=dsf_1carwiz">


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,

08-31-2006, 03:54 PM
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.

08-31-2006, 05:28 PM
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.