Js implements various menu commands in the browser such as print view source files and so on

  • 2020-03-26 21:39:44
  • OfStack

 
input type="button" onclick="document.execCommand('open')" value= Open the  
input type="button" onclick="document.execCommand('saveas')" value= save  
input type="button" onclick="document.execCommand('print')" value= print  
input type="button" onclick="document.execCommand('selectall')" value= Future generations  
input type="button" onclick="location.replace('view-source:'+location)" value= The source file  
input type="button" onclick="window.external.ShowBrowserUI('PrivacySettings',null)" value= Security options  
input type="button" onclick="window.external.ShowBrowserUI('LanguageDialog', null)" value= Language Settings  
input type="button" onclick="window.external.AddFavorite(location.href, document.title)" value= Add to favorites  
input type="button" onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" value= Organize your favorites  
input type="button" value= The refresh  name=refresh onclick="window.location.reload()"> 
input type="button" value= Import favorites  onclick=window.external.ImportExportFavorites(true,''); 
input type="button" value= Export favorites  onclick=window.external.ImportExportFavorites(false,''); 


Related articles: