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

Redirect to another page and refresh destination

本文关键字:刷新 目标 另一个 重定向      更新时间:2023-09-26

我正在尝试弄清楚如何在下面做 -

我正在尝试做的是重定向到 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">

提前谢谢你。

问候蒙纳

这就是你需要的一切:

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