I want to know which button is called of javascript in uiwebview, My script is
function nextPage()
{
window.location = "page3.html";
}
function prevPage()
{
window.location = "page1.html";
}
My current page is page2.html.On button action, current page will move backword and forward
I set name and onclick action to both buttons
<button onclick="prevPage();" id="back"></button>
<div id="counter">Page 1 of 13</div>
<button onclick="nextPage();" id="next"></button>
</div>
how to know which button is called. also want the value inside window.location on button click action
Thanks in advance