I found a solution, maybe a little strange.
I have this in my on_input() pressed
if action.pressed then
if gui.pick_node(self.btnMoreGames, action.x, action.y) then
gui.play_flipbook(self.btnMoreGames,"btnMoreGames0002")
html5.run("pressed()")
end
end
and this in my custom index:
<script>
function pressed()
{
document.getElementById("canvas").onclick = function (e) {
openqkygames()
};
}
function openqkygames()
{
window.open("http://www.qkygames.com",'_blank');
document.getElementById("canvas").onclick = "";
}
</script>
so when pressed the button more games, I call “pressed” to created a click release event for canvas in index and when is called I remove it.
sorry for my english.