Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <script>
    var app = {
      hide:function(){
        var elms = document.querySelectorAll('img');
        for(var i = 0; i < elms.length; i++){
        if(!elms[i].alt){
        elms[i].style.display = 'none';
        }
          
        }
      }
      
    }
  </script>
  <title>JS Bin</title>
</head>
<body onload="app.hide()">
<img src="" alt="This is what I want to search">
  <img src="">
  <img src="" alt="This is what I want to search">
  <img src="">
  <img src="" alt="This is what I want to search">
  <img src="" alt="This is what I want to search">
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers