A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/apis/web-storage/Storage/removeItem below:

removeItem · WebPlatform Docs

removeItem Summary

Removes the key/value pair with the given key from the list associated with the object, if it exists.

Method of apis/web-storage/Storageapis/web-storage/Storage

Syntax
 object.removeItem(key);
Parameters key
Data-type
String

The name of the key, or the empty string.

Return Value

No return value

Examples

if(window.sessionStorage) {

  
  sessionStorage.setItem('someKey', 'value');

  
  sessionStorage.removeItem('someKey');
}
Related specifications
W3C Web Storage Specification
W3C Editor’s Draft
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4