loadURL
the promise will resolve when the page has finished loading (see did-finish-load), and rejects if the page fails to load (see did-fail-load). A noop rejection handler is already attached, which avoids unhandled rejection errors. If the existing page has a beforeUnload handler, did-fail-load will be called unless will-prevent-unload is handled.
Same as webContents.loadURL(url[, options]).
The url can be a remote address (e.g. http://) or a path to a local HTML file using the file:// protocol.
To ensure that file URLs are properly formatted, it is recommended to use Node's url.format method:
You can load a URL using a POST request with URL-encoded data by doing the following: