Posted By


Sephr on 03/05/09

Tagged


Statistics


Viewed 52 times
Favorited by 0 user(s)

DOMStorage removeKey


/ Published in: JavaScript
Save to your folder(s)

DOMStorage removeKey
===============
Syntax: `void domstorage_object.removeKey(key:int)`

This will do the following:

domstorage_object.removeItem( domstorage_object.key(key) )


Copy this code and paste it in your HTML
  1. if ( typeof Storage != "undefined" ) {
  2. Storage.prototype.removeKey = function removeKey(key) { this.removeItem( this.key(key) ) }
  3. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.