• 0

help with simple iframe redirect?


Question

I'm trying to use an iframe on a page that keeps re-directing. This is the iframe code :

<iframe src ="http://djdanster.listen2myradio.com/" width="600" height="300">
  <p>Your browser does not support iframes.</p>
</iframe>

If you go to this page, you will see the iframe appears for about a second and then re-directs to here.

I tried adding a "redirect=0" to the end of the URL but it just re-directed me to their homepage.

I want it to stay on this page.

I'm a complete noob when it comes to web developing so be kind to me ;)

Thanks!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

They probably don't want others to show their website in frames. Basically, they are checking if the site is shown thru a frame, and if it is, they fire up a redirect and kill the page. Nothing you can do about it, you can't show the page in a frame.

Link to comment
Share on other sites

  • 0

Ok, thanks anyway :).

Anyway to have it open in a pop-up box like this? so I only get the address bar and the refresh button.

Link to comment
Share on other sites

  • 0

Popup windows are newer really good idea. The user should always have the choise to open the link in anything they want.

Anyway, you can do popup windows with Javascript by using open method.

Thanks I've got it working.

http://www.djdanster.co.uk/test/

Pleasse bear in mind the page is a work in progress pinch.gifrofl.gif

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.