handling back button in android from jquery

前端 未结 2 1054
既然无缘
既然无缘 2021-01-25 08:51

We have developed an application in jQuery integrated with android (which has only one activity). From this activity we are loading an HTML file, on this file we are showing and

2条回答
  •  情书的邮戳
    2021-01-25 09:05

    Use this code in your HTML page to handle back button pressed

    document.addEventListener("backbutton", onBackKeyDown, false);
    
    function onBackKeyDown() {
    // Handle the back button
    }
    

提交回复
热议问题