for Example I have a html page :
a.html
and I have another html page :
b.html
and a button in a.html
<button id="btnsayhello" onClick="SayHello()">Say Hello</button>
and a function in a.html
script tag :
function SayHello() {
alert("Hello");
}
and a function in b.html
script tag :
function down(sec) {
setTimeout("location.href='" + "a.html" + "'", sec * 1000);
$("#btnsayhello").click();
}
this code is not correct , but how Can I do this ? I want to click a button of a html page from another html page.