javascript - Need exact location of deviceready() in cordova.js -


the below code returns me cordova object. using object accessing cordava.js

<script>     function onload()         document.addeventlistener("deviceready", ondeviceready(cordova), false); </script> 

now query is, eventlistener calls deviceready function. asking here deviceready function definition. can find this.

ondeviceready callback function tells cordova ready. should define , write code related cordova inside it.

document.addeventlistener("deviceready", ondeviceready(cordova), false);  function ondeviceready(cordova) {  //your code goes here  } 

Comments