How To: Hide title bar or URL usingJavascript

Here’s the test page, testframe.html:
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<title>Test page</title>
<script language=”JavaScript”>
<!–
function openWindowNew( windowURL, windowName) {      
  var windowFeatures=’width=518,height=500,toolbar=0,location=0,scrollBars’
  return window.open( windowURL, windowName, windowFeatures ) ;
}
//—>
</script>
</head>
<body>
 <a href=”#” onClick=”newWindow = openWindowNew(‘frameset.html?’+escape(‘http://www.myserver.com’), ‘Mywindowname’); newWindow.focus(); return false”>Here’s the link to myserver</a>
></html>

Here’s the frame page, frameset.html:
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<title>frame page</title>
</head>
<body>
<frameset onLoad=”top.content.location=location.search.substring(1)” rows=”100%”>
<frame name=”content” src=”about:blank”>
</frameset>
</body>
</html>

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top