Re: Web Storage how to check for support?

Joseph,

thanks for that,

had tried document but not window

regards

~:"

On 27 Jul 2009, at 16:41, Joseph Pecoraro wrote:

>> http://dev.w3.org/html5/webstorage/#the-storage-interface
>> Web Storage how to check for support?
>>
>> How can one in a script check for UA support?
>
> How about either of the following, they both worked as expected for  
> me.
>
>  // Check for the Storage interface
>  if (window.Storage) { ... }
>
>  // Check for an instance of the interface
>  if (window.localStorage) { ... }
>
> - Joe

Received on Monday, 27 July 2009 16:15:52 UTC