Wednesday, 30 September 2015

Disable Cut, Copy, Paste using JQuery

JQuery is like a boon for web developers and designers. It has reduced the efforts, code to a great extent to achieve any task. Similarly, here is one really cool code to disable cut, copy, paste using jquery: Example : <!DOCTYPE html> <html>     <head>    ...

Base64 encode decode using Javascript

Javascript provides an easy way to Base64 encode and decode a string, using which we can encode decode a string to base64 on the fly. Two functions window.btoa() & window.atob() can be used to achieve the task. Example: var encodedStr = window.btoa(“Hello world”); // to encode...