使用jQuery从HTML页面重定向到PHP页面

使用jQuery从HTML页面重定向到PHP页面,php,javascript,jquery,Php,Javascript,Jquery,可能重复: 在我的站点中,我想使用jQuery将用户从HTML页面重定向到PHP页面 我该怎么做? 这可能吗?你可以:) 为什么要使用jQuery?只是简单的JavaScript: window.location='http://url.to.my/page.php' window.location='http://url.to.my/page.php' $(location).attr('href',"MyPhpPage.php");

可能重复:

在我的站点中,我想使用jQuery将用户从HTML页面重定向到PHP页面

我该怎么做? 这可能吗?

你可以:)


为什么要使用jQuery?只是简单的JavaScript:

window.location='http://url.to.my/page.php'
window.location='http://url.to.my/page.php'
 $(location).attr('href',"MyPhpPage.php");