【IT专家】获取iframe网址在网站地址中的变化 |
您所在的位置:网站首页 › 获取iframe的url › 【IT专家】获取iframe网址在网站地址中的变化 |
获取 iframe 网址在网站地址中的变化 获取 iframe 网址在网站地址中的变化 [ 英 ]Getting iframe url changes in website address Hey Guys I am a little new to this area.
嘿伙计们我对这个地区有点新意。
I have the following code on my site:
我的网站上有以下代码 :
body onload=“LoadIframeUrlInAddressBar();” iframe id=“inventorytest” width=“100%” height=“5000” frameborder=“0” src=“inventorycc/apps/inventorysearch/Search/Index/183” /iframe script type=“text/javascript” language=“javascript” function LoadIframeUrlInAddressBar() { var iframe = document.getElementById(“inventorytest”); window.location.hash= iframe.src; /script When I access my webpage, and type something into the search within the iframe, the iframe shows at my domain after a hash.
当我访问我的网页 , 并在 iframe 中的搜索中输入内容时 ,iframe 会在哈希后显示在我 的域中。
Example: 123/test-page/#inventorycc/apps/inventorysearch/Search/Index/183
What I would like to happen is the query strings within my iframe also displays after the hash every time a user does a search or clicks on something with the frame.
我想要发生的是 , 每次用户进行搜索或点击某些内容时 , 我的 iframe 中的查询字符 串也会显示在哈希值之后。
Is this possible to do?
这可能吗 ?
0
I can really test it on you site but basically the idea is to get the value from the input field from the iframe and implement it in the URL, so to take the value from the iframe when the search button is clicked write (this is the part i cant test but you can add this code |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |