Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<a class="russian" href="http://google.com">some link</a>
<script>
var url = $('a').attr('href');
    $.ajax({
      url:url,
        type:'HEAD',
        error: function()
        {
           alert("yes");
          //file not exists
        },
        success: function()
        {
          alert("no");
            //file exists
        }
    });
  
</script>
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers