base64 encode using javascript

We can encode any string to a encoded data (using base-64 encoding) string.

The btoa() method of window object used to to a encoded data (using base-64 encoding) string.


Example :



window.btoa('Hello World !!!');

Output : SGVsbG8gV29ybGQgISEh

Use Facebook to Comment on this Post


Comments

Popular posts from this blog

cookie and subdomains

how to check whether element is visible on screen

Ternary Operators