Developers Map
Discy Latest Questions
Learn how to copy text to the clipboard with JavaScript. Use this :
In a single line use by function
Hers code: return filename.split('.').pop(); return /[^.]+$/.exec(filename); return (/[.]/.exec(filename)) ? /[^.]+$/.exec(filename) : undefined;
if you want to get your browser name and version you can use below code it will helpful for you. it is a easy way to get browser name and version using Javascript. Code :
You’re asking for zero padding? Not really rounding. You’ll have to convert it to a string since numbers don’t make sense with leading zeros. Something like this… function pad(num, size) { var s = num+""; ...
How to Disable right-clicking by using JavaScript use javascript code given below: window.onload = function() { document.addEventListener("contextmenu", function(e){ e.preventDefault(); }, false); document.addEventListener("keydown", function(e) { ...
How to remove value and pop value in javascript array? Step 1 : Create prototype to remove js elemenet
How to add jQuery Date picker in website and change date format in JQuery Date picker. In this article we are showing how to add and all possible date format you can add. let example and code sample for add JQuery Date ...
Please provide me the code with html part also.
When we are working on a website bit we want to print a web page or specific section or image then you should try this code.This blog will show you how to use JavaScript’s for print a web page. The ...