我想在我的索引页面中调用一个函数,该页面可以在"电话间隙文件"中找到,我在一个帧中调用了电话间隙文件中的索引页面。 目前的代码在网络上工作但不在应用程序中,请任何人建议我
//code inside phonegap
function clickImage(){
alert("Phonegap app");
}
//Code inside normal html
function clickPicture(){
window.parent.clickImage();
}

index.html
_______________
<body>
<button onclick="clickPicture();">Take Picture</button>
</body>
Phonegap.html
_____________
<iframe id ="Qusframe" src="index.html" width='100%' scrolling='no' frameBorder='0' >
<p> Your browser does not support iframes. </p>
</iframe>
&#13;