Skip to content
tharatau edited this page Jan 19, 2023 · 6 revisions

NOTE: some content in this wiki applies only to 0.12 and earlier versions. For official documentation on 0.13 and later, see http://docs.nwjs.io

The following changes to DOM is made to support native applications better:

Features marked with node only means that only Node frames can do this. Normal frames still follow the W3C standard. For definition of Node frames and Normal frames, see Security

setting value of file input element (node only)

// This behaviour is currently broken. See https://github.com/nwjs/nw.js/issues/7958
var f = new File('/path/to/file', 'name');
var files = new FileList();
files.append(f);
document.getElementById('input0').files = files;

script can emulate user gestures

JavaScripts can emulate user gestures while in browsers they can't. e.g. Triggering click event on file input. See File-dialogs

nwUserAgent

since v0.9.0-rc1

A new attribute nwUserAgent is added to the iframe element. The value is used as the User-Agent header from HTTP requests from that iframe, or its descendants.

nwdisable

since v0.5.0
See Mini-browser-in-iframe

nwfaketop

since v0.5.1
See Mini-browser-in-iframe

Clone this wiki locally