Archive for August, 2006

 Today , I was playing around of ways of how you can Hide an Address/Tool Bar on a Page Reload. I looked at couple of solutions on the net but nothing seems to be available for IE and Firefox working together. Then I figured it out a way to work it out for both. This is the code I used, to solve my problem.     

< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

“http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>

<title></title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>

<script>
function openWindow(){
var browser=navigator.appName;
if (browser==”Microsoft Internet Explorer”){
window.opener=self;
}

window.open(’popup.html’, ‘null’, ‘width=900,height=750,toolbar=no,scrollbars=no,location=no,resizable =yes’);
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height-100);
//parent.close(); //Closing on the child
}

</script>

</meta></head>
<body onload=”window.open(”,’_parent’,”);openWindow()”>

<table border=”0″ cellpadding=”0″ cellspacing=”0″>
<tr>
<td>If the window does not open, please turn off the pop-up blocker for this site and <a href=”#” onClick=”window.open(”,’_parent’,”);openWindow()”><u>click here</u></a></td>
</tr>
</table>
</body>
</html>

Edit : A lot of people are having problem implementing this code, may be because of the quote not displaying correctly. To make the life little easier, I have zipped up the code and can be dowloaded from HERE

You can Also Demo it at  http://rahmansaher.com/poper.html

Sphere: Related Content

Comments 13 Comments »