[CB-3744] InAppBrowser docs errors / cleanup
diff --git a/docs/en/2.7.0/cordova/inappbrowser/inappbrowser.md b/docs/en/2.7.0/cordova/inappbrowser/inappbrowser.md
index 8850593..ba955a6 100644
--- a/docs/en/2.7.0/cordova/inappbrowser/inappbrowser.md
+++ b/docs/en/2.7.0/cordova/inappbrowser/inappbrowser.md
@@ -353,7 +353,7 @@
ref.insertCSS(details, callback);
- __ref:__ reference to the InAppBrowser window (`InAppBrowser`)
-- __injectDetails:__ details of the script ot run (`Object`)
+- __injectDetails:__ details of the script to run (`Object`)
- Supported keys: (exactly one of "file" or "code" should be present)
"file" - URL of the stylesheet to inject
@@ -381,7 +381,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>InAppBrowser.executeScript Example</title>
+ <title>InAppBrowser.insertCSS Example</title>
<script type="text/javascript" charset="utf-8" src="cordova-2.5.0.js"></script>
<script type="text/javascript" charset="utf-8">
@@ -396,7 +396,7 @@
// Inject our custom CSS into the InAppBrowser window
//
function changeBackgroundColor() {
- iabRef.executeScript({
+ iabRef.insertCSS({
code: "body { background: #ffff00"
}, function() {
alert("Styles Altered");
diff --git a/docs/en/edge/cordova/inappbrowser/inappbrowser.md b/docs/en/edge/cordova/inappbrowser/inappbrowser.md
index 8850593..ba955a6 100644
--- a/docs/en/edge/cordova/inappbrowser/inappbrowser.md
+++ b/docs/en/edge/cordova/inappbrowser/inappbrowser.md
@@ -353,7 +353,7 @@
ref.insertCSS(details, callback);
- __ref:__ reference to the InAppBrowser window (`InAppBrowser`)
-- __injectDetails:__ details of the script ot run (`Object`)
+- __injectDetails:__ details of the script to run (`Object`)
- Supported keys: (exactly one of "file" or "code" should be present)
"file" - URL of the stylesheet to inject
@@ -381,7 +381,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>InAppBrowser.executeScript Example</title>
+ <title>InAppBrowser.insertCSS Example</title>
<script type="text/javascript" charset="utf-8" src="cordova-2.5.0.js"></script>
<script type="text/javascript" charset="utf-8">
@@ -396,7 +396,7 @@
// Inject our custom CSS into the InAppBrowser window
//
function changeBackgroundColor() {
- iabRef.executeScript({
+ iabRef.insertCSS({
code: "body { background: #ffff00"
}, function() {
alert("Styles Altered");