title: How to disable default download or save option of a video file using html tag
body: <p>I have a list of video files and using anchor tag to display them. I want to play the videos without downloading or save button. I already disabled the right click option but still in some browsers the file will directly get downloaded on clicking the link. Can any one tell me how to avoid it? I have used the below code: </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script language='JavaScript' type='text/JavaScript'&gt; 
      // http://htmlgenerator.weebly.com 
      var tenth = ''; 
  
      function ninth() { 
          if (document.all) { 
              (tenth); 
              alert("Right Click Disable"); 
              return false; 
          } 
      } 
  
      function twelfth(e) { 
          if (document.layers || (document.getElementById &amp;&amp; !document.all)) { 
              if (e.which == 2 || e.which == 3) { 
                  (tenth); 
                  return false; 
              } 
          } 
      } 
      if (document.layers) { 
          document.captureEvents(Event.MOUSEDOWN); 
          document.onmousedown = twelfth; 
      } else { 
          document.onmouseup = twelfth; 
          document.oncontextmenu = ninth; 
      } 
      document.oncontextmenu = new Function('alert("Right Click Disable"); return false') 
  &lt;/script&gt; 
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;video&lt;/h1&gt;
  &lt;a href="barsandtone.flv" target="_blank" &gt;Video1&lt;/a&gt;
  
  &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>