Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Thumbs.db
*.idea

node_modules

coverage



Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ The object returned from a call to `cordova.InAppBrowser.open` when the target i
- hide
- executeScript
- insertCSS
- loadAfterBeforeload

## InAppBrowser.addEventListener

Expand All @@ -211,6 +212,7 @@ The object returned from a call to `cordova.InAppBrowser.open` when the target i
- __loadstop__: event fires when the `InAppBrowser` finishes loading a URL.
- __loaderror__: event fires when the `InAppBrowser` encounters an error when loading a URL.
- __exit__: event fires when the `InAppBrowser` window is closed.
- __hide__: event fires when the `InAppBrowser` window is hidden.
- __beforeload__: event fires when the `InAppBrowser` decides whether to load an URL or not (only with option `beforeload` set).
- __message__: event fires when the `InAppBrowser` receives a message posted from the page loaded inside the `InAppBrowser` Webview.
- __download__: _(Android Only)_ event fires when the `InAppBrowser` loads a URL that leads in downloading of a file.
Expand Down Expand Up @@ -380,6 +382,7 @@ function downloadListener(params){
- __loadstop__: event fires when the `InAppBrowser` finishes loading a URL.
- __loaderror__: event fires when the `InAppBrowser` encounters an error loading a URL.
- __exit__: event fires when the `InAppBrowser` window is closed.
- __hide__: event fires when the `InAppBrowser` window is hidden.
- __message__: event fires when the `InAppBrowser` receives a message posted from the page loaded inside the `InAppBrowser` Webview.
- __download__: _(Android only)_ event fires when the `InAppBrowser` loads a URL that leads in downloading of a file.

Expand Down Expand Up @@ -518,6 +521,13 @@ The function is passed an `InAppBrowserEvent` object.
ref.addEventListener('loadstop', function() {
ref.insertCSS({file: "mystyles.css"});
});

### Multi-instance support

When you use cordova.InAppBrowser.open it reuses the same browser instance.
In case you want to have multi-instances support you can use cordova.InAppBrowserMulti.open which returns different browser instance.
On js side it is IABWindow object which has all known API + windowId property.

__

## <a id="sample"></a>Sample: Show help pages with an InAppBrowser
Expand Down
Loading