Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以将用户重定向到他们的主页。主页是指在他们的浏览器中定义为主页的 URL。当他们单击浏览器的“主页”按钮时,他们会进入该页面。
我知道 Internet Explorer 使用<a href="about:home" title"Go to your homepage">Homepage</a>,但我不知道其他浏览器为此使用什么!
<a href="about:home" title"Go to your homepage">Homepage</a>
这可能吗?
我不知道您是否正在寻找此线程中讨论的类似内容:
使用 Javascript 将用户发送到浏览器的主页
只需创建一个链接即可返回用户来自的位置:
<a href="#" onClick="history.go(-1);return true;">Back</a>
或类似的按钮
<button type="button" onClick="history.go(-1): return true:">I do not agree</button>