Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Break out of iframe WITHOUT Javascript? (https://www.warriorforum.com/programming/87600-break-out-iframe-without-javascript.html)

Sean Kelly 27th May 2009 04:43 AM

Break out of iframe WITHOUT Javascript?
 
Is it possible to break out of an iFrame without using Javascript?

My initial thought was 'no', but surely there must be a way..

There are plenty of examples on the web of how to do it using Javascript but is it possible without Javascript somehow?

The only thing I can come up with so far is to put
Code:

target="_TOP"
into the links that are in the iframed page.

Sean

AnneE 27th May 2009 05:48 AM

Re: Break out of iframe WITHOUT Javascript?
 
Quote:

Originally Posted by Sean Kelly (Post 820383)
Is it possible to break out of an iFrame without using Javascript?

My initial thought was 'no', but surely there must be a way..

There are plenty of examples on the web of how to do it using Javascript but is it possible without Javascript somehow?

The only thing I can come up with so far is to put
Code:

target="_TOP"
into the links that are in the iframed page.

Sean

Well, did simply putting target="_TOP" in the links inside frame work? And if so, are you still looking for another option? Also, why do you care about not using Javascript?

Others can correct me if they disagree, but I don't know of anyone that turns Javascript off on a regular basis. My husband used to... but he realized that all the websites that 'weren't working properly' were because he had Javascript off and I think he finally turned it on.

Sean Kelly 27th May 2009 05:56 AM

Re: Break out of iframe WITHOUT Javascript?
 
Hi Anne,

It's for my Merchant Account Payment Page.. their CreditCard form is hosted on their site so I use an iframe. The problem is that when they display their 'payment success', it too is in the iframe and I dont have a way of showing the product download screen.

Even if 1 out of 100 customers have Javascript switched off then they cannot get their download. This is support I would rather avoid and not good service to my clients.

Sean


All times are GMT -6. The time now is 12:09 AM.