Skip to content

covernal/cordova-plugin-webview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-webview

embeded webview for cordova app

This plugin is different with inappbrowser, You can load html page or external urls in the embeded webview, and control it directly.

Background

This plugin was originally commissioned by [ZeGenie Inc] ze.

Install

cordova plugin add cordova-plugin-inappbrowser

Method

  • cordova.EbWebview.open(url, param)
app.webview = cordova.EbWebview.open(encodeURI('http://www.bing.com'), 'left='+app.left+',top='+app.top+',width=320,height=200');
  • load(url)
  • show(), hide()
  • setPosition(left, top)
  • setSize(width, height)
  • addEventListener(eventName, callback)
  • removeEventListenenr(eventName, callback)
  • executScript(injection, callback)

Sample

[Here is sample javascript file] sample

About

embeded webview for cordova app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published