Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( typeof( Storage ) !== "undefined" )
- {
- // Code for localStorage/sessionStorage.
- console.log( 'Storage Exists!' );
- }
- else
- {
- // Sorry! No Web Storage support..
- console.log( 'Storage doesn\'t Exists!' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement