문제

<style>
.address_bar
{
    width:1100px;
    color:#333333;
    font-family:Verdana, Geneva, sans-serif;
}
\#browser
{
    width:90%;
}
</style>
<script language="javascript" type="text/javascript">
    function go_to_page()
    {
        var url = document.getElementById("address").value;
        //window.open(url,"browser");
        document.getElementById("browser").src = url;
    }
</script>



<body>  
<div>  
    <div style="float:left;">  
        <input type="text" name="address" id="address" class="address_bar" value="http://"/>    
    </div>    
    <div style="float:left;">  
        <input type="button" name="go" id="go" value="Go >> " onclick="go_to_page()"/>
    </div>  
    <div>  
        <iframe name="browser" id="browser" style="height:750px;">  
        </iframe>  
    </div>  
</div>  
</body>  

In above example if I want to open 1. http://mail.yahoo.com 2. http://www.gmail.com

then It automatically removes the iframe. what I do? I want every site is open in same iframe.

도움이 되었습니까?

해결책

These sites have what is called a frame breakout, to prevent them being loaded in a frame. There are some scripts to disable frame breakout, with varying results.

Of course, loading 3rd party sites in an frame within your own website is kind of stealing, and profiting of their success, but I trust that you just want a way to check both of your e-mail accounts.

다른 팁

You can't. For security reasons, these websites won't load if they "know" they are in an iframe.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top