should be done like that and not with delete operator:
localStorage.removeItem(key);
More Related Contents:
- how to store new elements added in webpage by user? [closed]
- How to save an image to localStorage and display it on the next page?
- HTML5 Local Storage fallback solutions [closed]
- Saving and loading an image from localStorage
- jQuery document.getElementById() issue
- Change from (+) symbol to (-) after click (function(){
- How can i create html automatic change page? [duplicate]
- How do I check whether a checkbox is checked in jQuery?
- Detecting input change in jQuery?
- How to go to a specific element on page? [duplicate]
- How to pass parameters on onChange of html select
- How to scroll to top of page with JavaScript/jQuery?
- Using execCommand (Javascript) to copy hidden text to clipboard
- How to get the onclick calling object?
- How to use jQuery to select a dropdown option?
- JavaScript Scale Text to Fit in Fixed Div
- How to detect element being added/removed from dom element?
- CSS3-Animate elements if visible in viewport (Page Scroll)
- Open a new javascript window(.open) along with its CSS styling
- How to Disable Copy Paste (Browser)
- How can I use JSON data to populate the options of a select box?
- How to create a responsive image that also scales up in Bootstrap 3
- How to focus on a form input text field on page load using jQuery?
- How to replace html element with ajax response?
- How do I make a move up and down when I’m scrolling the page?
- Remove ‘All Files’ option from HTML file input
- Trigger for span text/html on changed
- How to properly unload/destroy a VIDEO element
- How to hide optgroup/option elements?
- Html duplicated ID