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. Advertisements

  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. Advertisements

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:
    472
    Martin
    Jun 16, 2004
  2. Jon paugh
    Replies:
    1
    Views:
    1,365
  3. =?Utf-8?B?Y296?=
    Replies:
    1
    Views:
    2,169
    =?Utf-8?B?Y296?=
    Jan 6, 2006
  4. Dave Saville

    How do I make this URL valid?

    Dave Saville, Sep 5, 2003, in forum: HTML
    Replies:
    2
    Views:
    589
    Dave Saville
    Sep 5, 2003
  5. Bob
    Replies:
    13
    Views:
    3,149
    Toby A Inkster
    Dec 26, 2003
  6. Just D.
    Replies:
    0
    Views:
    820
    Just D.
    Aug 11, 2004
  7. joe

    Verify a url form a perl script

    joe, Oct 26, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    137
  8. akadelski

    Verify URL/file exists

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