Click here to Skip to main content
15,898,538 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTML
<iframe  runat="server" name="framecontent2" id="framecontent2" width="100%" url="http://bobj.test.bnymellon.net" height="485" scrolling="auto" style="border:0px;background-color:#ffffff;"></iframe>
 
<script language="javascript">
var prevent_bust = 0  
window.onbeforeunload = function() { prevent_bust++ }  
setInterval(function() {  
  if (prevent_bust > 0) {  
    prevent_bust -= 2
    window.top.location = 'myobjects.aspx' 
    // replace your iframe with link to it
  }
}, 1)



I am using this code to avoid bursting out jsp url from Iframe.The problem i am facing is, After this code being executed, I am unable to navigate to other pages. Please help me. Thanks in Advance.
Posted
Updated 12-Sep-11 5:49am
v5
Comments
Prerak Patel 12-Sep-11 3:10am    
Unchecked the checkbox 'Treat my content as plain text, not as HTML'
Simon Bang Terkildsen 12-Sep-11 3:21am    
Split the html from the javascript the > for some reason cut of the rest of the javascript

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900