我有一个网页,我们将其称为web1。这个网页有一个div,其中包含一个外部网页web2。 web2存储在我们的服务器上,所以我们完全控制它,web1也是如此。从外部网页获取网址加载在一个div与jquery/javascript
在web1的代码来创建将包含web2的股利是如下:
<div class="form-group">
<label class='control-label col-sm-1'>Design Report Searcher</label>
<div class="col-sm-11">
<div id="load-external"></div>
</div>
</div>
</div>
而jQuery函数加载web2的
$("#load-external").html('<object style="height:320px; width:100%;" data="https://external.my.company.com/" />');
WEB2其中包含存储在文件清单一台服务器。
用户将在web2中导航,一旦他找到他想要的文档,web1将需要URL来解析它。
是否有可能使用jQuery获取该网址?