The problem is here:
onclick = "windows.open('xyz.html')"
The good solution:
onclick=javascript:window.location.replace("http://yourwebsite.com/page1.php")
or use this:
onclick="Navigate()"
function Navigate()
{
window.location.assign("http://yourwebsite.com/page1.php");
}