Verify URL is valid

Discussion in 'Javascript' started by psy, Oct 18, 2003.

  1. psy

    psy Guest

    Hello,

    How do I verify that a given URL exist before actually loding it using
    javascript?

    Thanks,
     
    psy, Oct 18, 2003
    #1
    1. Advertising

  2. psy

    VK Guest

    Load it to a hidden div / iframe and check onError event from it.

    psy <> wrote in message
    news:bihkb.33739$...
    > Hello,
    >
    > How do I verify that a given URL exist before actually loding it using
    > javascript?
    >
    > Thanks,
    >
    >
     
    VK, Oct 19, 2003
    #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. Martin
    Replies:
    1
    Views:
    419
    Martin
    Jun 16, 2004
  2. Jon paugh
    Replies:
    1
    Views:
    741
  3. Just D.
    Replies:
    0
    Views:
    436
    Just D.
    Aug 11, 2004
  4. joe

    Verify a url form a perl script

    joe, Oct 26, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    76
  5. akadelski

    Verify URL/file exists

    akadelski, May 18, 2006, in forum: Javascript
    Replies:
    3
    Views:
    227
    Randy Webb
    May 19, 2006
Loading...

Share This Page