重定向到另一个页面并刷新目标

时间:2013-10-02 15:24:55

标签: javascript

我想弄清楚我可以在下面做些什么 -

我要做的是重定向到http://www.example.com/xyz/index.php页面,然后刷新目标(http://www.example.com/xyz/index.php)我可以在onclick上执行此操作

<input class="submit" type="button" style="font-weight: normal;" 
                            onclick="javascript:window.location.href='http://www.example.com/xyz/index.php'; return false;" value="Back to web">

提前谢谢。

此致 莫纳

1 个答案:

答案 0 :(得分:1)

这就是你需要的一切:

<a class="submit" style="font-weight: normal;" href="http://www.example.com/xyz/index.php">Back to web</a>