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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -