IMPORTANT NOTE: These scripts will not work and/or will cause problems in virtually all browsers except IE6. Even in IE6, with aggressive security settings, there could be problems.
For IE only and possibly soon to be rendered impossible in IE7, this or a variation on it is about as close as you can get:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<!-- saved from url=(0014)about:internet -->
<!-- this and above comment should be removed for live, non-demo use -->
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
if (location.href.indexOf('fullmode')<0){
var win;
onload=function(){
for (var i_tem = 0; i_tem < document.links.length; i_tem++)
document.links[i_tem].href='javascript:void(0);'
document.onclick=function(){
win=window.open(location.href+'?fullmode','','fullscreen');
opener=self;
self.close();
}
}
}
</script>
</head>
<body>
Hi<br>
<a href="ad_h.htm">link</a>
</body>
</html>
This will render all links on the page inoperative until one is clicked, that action will open the page in 'fullscreen' mode with the links active.
This version gives the user the choice of staring at a blank page or allowing the pop up to open, with the added fact that if they click anywhere within the page, that too will open the pop up:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<!-- saved from url=(0014)about:internet -->
<!-- this and above comment should be removed for live, non-demo use -->
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
if (location.href.indexOf('fullmode')<0){
var win;
document.onclick=onload=function(){
document.body.style.display='none';
win=window.open(location.href+'?fullmode','','fullscreen');
opener=self;
setInterval("try{if (win.open){self.close()}}catch(e){return}", 5000)
}
}
</script>
</head>
<body>
Hi
<a href="ad_h.htm">link</a>
</body>
</html>
Bookmarks