打开链接一个div里面
问题描述:
同一页
我已经创建的HTML页面如下:打开链接一个div里面
<!DOCTYPE html>
<html>
<body bgcolor="#EBF5FB">
<h1 align="center">SLA Monitor Reports </h1>
<div id="link" align="center">
<table cellpadding="25px" border=1>
<tr>
<td>
<a href="https://serv.sxp.nova.corp/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.nova.pct!2fplatform_add_ons!2fcom.nova.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?BOOKMARK=CU4A95OJ17A355B2112ML30G6" target="_blank"><img src="\\server\server$\23185\Downloads\1Google.png" alt="Ticket Aging" style="width:200px"></a>
</td>
<td>
<a href="https://serv.sxp.nova.corp/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.nova.pct!2fplatform_add_ons!2fcom.nova.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?BOOKMARK=CU4A95OJ17A355B2112ML30G6" target="_blank"><img src="\\server\server$\23185\Downloads\1Google.png" alt="Ticket Aging" style="width:200px"></a>
</td>
</tr>
</table>
</div>
<div>
</div>
</body>
</html>
我想要显示的https://开头..... 。链接的内容使用<div>
在同一页的表格下。
IFrames没有帮助,因为它是一个安全的链接。
任何人都可以请帮忙。
答
$("#link table td a").click(function(e){
$("#link").next().load($(this).attr("href"));
e.preventDefault()
});
你的问题不清楚! –
你可以试试这个$(yourDiv).load(“yourLink”); – cbalakus