Opera Presto offers support for Offline Web Applications implementing the user interface for caching. This allows documents to communicate with each other regardless of their source domain, and is designed in a way which does not enable cross-site scripting attacks. See this demo.
The client-side SQL database in HTML5 enables structured data storage. The API to interact with this database is asynchronous which ensures that the user interface does not lock up.
| Method | Arguments | Support |
|---|---|---|
openDatabase()
|
|
Yes |
transaction()
|
|
Yes |
executeSQL()
|
|
Yes |
The mechanism for ensuring Web applications are available even when the user is not connected to their network is the
manifest attribute on the html element. The attribute takes a URI to a manifest, which specifies which
files are to be cached.
| Element | Attribute and value | Support |
|---|---|---|
html
|
manifest="cache-manifest"
|
Yes |
<!DOCTYPE HTML> <html manifest="cache-manifest"> ...
This manifest file specifies several files to cache, and then specifies that server.cgi should never be cached.
CACHE MANIFEST index.html help.html style/default.css images/logo.png images/backgound.png NETWORK: server.cgi
| Item | Description | Support |
|---|---|---|
onLine attribute on the Navigator object
|
|
Yes |
online and offline events
|
Indicates changes made to the onLine attribute.
|
Yes |
localStorage attribute
|
|
Yes |
Need help? Hit F1 anytime while using Opera to access our online help files, or go here.