【发布时间】:2014-01-06 23:27:08
【问题描述】:
我想从具有以下 URL http://example.com/foo.html?query=1&other=2 的页面创建指向 http://example.com/bar.html?query=1&other=2 的链接。如何在不显式保存和重新加载所有查询字符串的情况下做到这一点。
我需要它来轻松地从页面的 iframe 版本 (embed.html?query) 链接到完整页面 (index.html?query)。
【问题讨论】:
-
你说“我要创建链接”是什么意思?
-
我需要一个锚
<a href="...">Full page</a>
标签: javascript html url query-string href