在服务器上的网站的不同页面之间导航


Navigation between different pages of website on server

我在一个简单的网站上遇到了问题,在那里我使用按钮在不同的页面之间切换,
在每个按钮后面,我使用onclick()方法打开其他页面。
我使用的方法是JavaScript的onclick = "windows.open('xyz.html')"
但是当我点击一个按钮打开一个特定的页面时,那个特定的页面不会打开,取而代之的是另一个页面。

注意:网站是用php放在apachi(wamp服务器)服务器上的。

试试这个。

window.location.href = 'xyz.html';
window.open('xyz.html')//This will open xyz.html in a new window.

试试这个

window.location='xyz.html'

你可以试试:

onclick="window.location='xyz.html' ";

header("Location:http: //www.xyz.html/") ` (or) ` header('Location: http://www.xyz.html/');