Html miscellaneous
- Which of the following is not the storageEvent interface?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
There are many storgeEvent interfaces like event.key, event.newValue, event.url, event.oldValue, event.storageArea. Event.key returns the key if the storage item is changed, event.oldValue and event.newValue returns old value and the new value of the key whose value has been changed. Event.url returns the URL of a document which has been changed.
- Which of the following is invoked when it is not fired on window object?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
When removeItem(), clear() and setItem() are invoked the events are fired on window object, which accesses newly stored or removed data, as defined by LocalStorage and sessionStorage attributes, getItem(key) method returns the current value associated with the key.
- Which of the following returns a number of value pairs?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
storage.length returns number of value pairs that are currently present in the list, storage.key(n) returns name of nth key from the list, storagesetItem(key,value) sets the value which is identified by key to value, storage.clear() empties the list which is associated with values.
- Which of the following is not a web storage interface?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
There is only three web storage interface window, storage, and StorageEvent. Window object provides access to the local storage objects. Storage retrieves, set and remove data from the domain. Storage event is fired when the storage area on a document’s window changes.
- What is the limit of character storage for chrome 23.0 in sessionStorage?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
We can store 510 k characters in sessionStorage in chrome 23.0, for chrome 18.0 and chrome 24.0 we can store unlimited characters, for chrome 19.77 its value is 1021 k, for chrome 25.0 and 27.0 it is 2.49 M, for chrome 28.0, 30.0, 31.0, 31.1 its value is 4.98 M.