开发者

How do I add a link to my HTML page with out affecting the other functionality in the page?

I added one new link in a webpage. it works fine, but when I hit a link, one blank is coming with that page. I know the reason: it’s because of <iframe> in the bottom. I am adding the code below.

My question is "how to add without affecting other links" or changing functionality in other web page?

In the first web page, I added this link:

<%-- Access the <a href="javascript:navigate('/common/Link.aspx?linkid=SecureAPI&amp;JumpID=Products.ResourceCenter.Operations.AnnuityOrderEntry')">A.O.E.One-Stop-Shop</a> in the Resource Center for further information and instructions.--%>

This link is affected by an <iframe> in the same page.

<iframe name="TimeoutFrameLPL" id="TimeoutFrame" src="blan开发者_C百科k.htm" width="1px" height="1px" frameborder="0"></iframe>

The <iframe> is calling in another webpage. Due to this I am getting a blank page.

<script type="text/javascript">
    setDocDomain();

var lastID = '0';

var qs = new String(location.search);
var target = 'AnnuityLandingPage.aspx'+qs;

function getCommFrame()
    {
    var iwin;
    if(navigator.userAgent.indexOf("Safari") != -1)
    {
        iwin = frames["TimeoutFrame"];
    }else{
        iwin = window.open('', "TimeoutFrame");
    }
    return iwin;
    }

What are the changes required in the two webpages for not displaying that blank page? Please help me out.


Did you try <iframe style="display:none" /> ?

if you set the attribute style of an element to display:none, the browser will skip its rendering


Are you specifying a target? I believe this is what you need, such as: <a href='my.awesome.site.com target="myFrame">Load Page</a>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜