Monday 9 July 2012

Break Out From The Frame Using Javascript


<html>
<head>
<script type="text/javascript">
function breakoutfromframe()
{
if (window.top!=window.self)
  {
  window.top.location="xxxx.html";
  }
}
</script>
</head>
<body>

<input type="button" onclick=" breakoutfromframe ()" value=" Break out from frame !">

</body>
</html>

No comments:

Post a Comment