How do I provide alternate or default site if iframe src is not available?

Discussion in 'Javascript' started by Chandra, Mar 7, 2007.

  1. Chandra

    Chandra Guest

    If a iframe src link is not available, how can i provide a default
    site or alternate site for the iframe to use?
    Chandra, Mar 7, 2007
    #1
    1. Advertising

  2. Chandra

    Darko Guest

    On Mar 7, 7:52 am, "Chandra" <> wrote:
    > If a iframe src link is not available, how can i provide a default
    > site or alternate site for the iframe to use?


    You can't, really, in HTML. The only thing you could maybe do is have
    an element in your iframe document, that you'll search for on load,
    and if it is not available or any other problem occurs, you change its
    location to another.
    Darko, Mar 7, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris
    Replies:
    2
    Views:
    677
    Chris
    Mar 4, 2007
  2. Chandra
    Replies:
    0
    Views:
    309
    Chandra
    Mar 7, 2007
  3. Chandra
    Replies:
    0
    Views:
    311
    Chandra
    Mar 7, 2007
  4. Replies:
    10
    Views:
    336
    Sean O'Halpin
    Jul 17, 2006
  5. Soren Vejrum
    Replies:
    4
    Views:
    566
    Lasse Reichstein Nielsen
    Jul 5, 2003
Loading...

Share This Page