in my index.html
<div class="grid9 red" onclick="myNavigatorHome.pushPage('Test.html', { animation : 'slide' } )">
test
</div>
When I click it will pushPage to Test.html but:
- How to run my initialize code in Test.html ?
I tried to write them in Test.html
ons.ready(function() {//do some thing});
but it didn't work
I also tried to write in Test.html
document.addEventListener("pageinit", function(e) {//do some thing}
but it didn't work neither
please help advise. Thx