What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-02 22:05:04
js code for webpage download progress bar
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div id="a1" data-filename="filename.xml">Click to download</div> <script> $('#a1').click(function() { ... Add solution -
TypeScript 2021-09-20 12:25:03
download blob typescript
public downloadBlob(fileName: string, blob: Blob): void { if (window.navigator.msSaveOrOpenBlob) { window.navigator.msSaveBlob(blob, fileName); } else { const anchor = window.document.createElement('a'); anchor.href = window.URL.createObje... Add solution -
Javascript 2021-09-07 17:24:02
export to excel in javascript
//Excel export script works on IE7+, Firefox and Chrome. function fnExcelReport() { var tab_text="<table border='2px'><tr bgcolor='#87AFC6'>"; var textRange; var j=0; tab = document.getElementById('headerTable'); // id o... Add solution -
Javascript 2021-08-30 01:43:01
how to vibrate phone using javascript
// vibrate device for 300 milliseconds window.navigator.vibrate(300); // vibrate for 300 milliseconds // then wait for 100 milliseconds // vibrate again for 200 milliseconds window.navigator.vibrate([300, 100, 200]); // cancel out ongoing vibration window... Add solution -
Javascript 2021-08-27 11:52:02
javascript reverse geocoding
// Full tutorial: https://www.youtube.com/watch?v=JdJ2VBbYYTQ function reverseGeocode(latitude, longitude) { let apikey = "your API key goes here"; fetch('https://api.opencagedata.com/geocode/v1/json' + '?' + 'key=' + ap... Add solution