javascript - Where do I find cordova.js? -


i'm writing mobile app html5, javascript , css3. i'm using phonegap.

so if use this.

document.addeventlistener("deviceready", ondeviceready, false);  function ondeviceready() {     document.addeventlistener("backbutton", onbackkeydown, false); }  function onbackkeydown() {     alert("test"); } 

i error:

cordova : must have cordova.js included in projects, able trigger events.

i'm using ripple emulate smartphone. , right. don't have cordova.js in project folder, because don't know it. have downloaded newest version 2.9.0 of phonegap , using specially cordova-mobile-spec.

there no cordova.js cordova-incl.js. how obtain file?

check cordova.js inside new project created (by using command line)

or

check lib folde inside downloaded cordova zip file

enter image description here

enter image description here

for ios check cordovalib folder

enter image description here

enter image description here

android

enter image description here

please check libs folder of each platform.


Comments