Sinbad
05-17-2003, 06:06 AM
Hi folks,
I am opening a new window to display info (ie6) that I may want the user to print, without seeing the annoying url info etc at the bottom of each page. I am aware that css "media" properties may do the trick, but I cant figure out how to implement or whether I can achieve this with window properties instead.
I want to eliminate these :-
i) At Top of each page RHS I see - Page 1 , etc......
ii) At Bottom of each pg I see -
http://localhost/mysite/page_xyz.cfm?....
This is the window opening code I am using (note status=no)
<script LANGUAGE="JavaScript">
<!--
var str = "left=300,screenX=300,top=300,screenY=300";
if (window.screen) {
var ah = screen.availHeight - 40;
var aw = screen.availWidth - 50;
str += ",height=150";
str += ",innerHeight=150";
str += ",width=220";
str += ",innerWidth=220";
str += ",status=no,scrolling=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=yes";
}
//window.name = "different"; // this names current window and forces a new window with the features above.
pagetoload = "http://localhost/mysite/page_xyz.cfm?saw=" + aw + "&sah=" + ah + "&PID=<cfoutput>#thisPID#</cfoutput>";
win = window.open(pagetoload,"myxyz",str); // name this window for reference later
//-->
</script>
I am opening a new window to display info (ie6) that I may want the user to print, without seeing the annoying url info etc at the bottom of each page. I am aware that css "media" properties may do the trick, but I cant figure out how to implement or whether I can achieve this with window properties instead.
I want to eliminate these :-
i) At Top of each page RHS I see - Page 1 , etc......
ii) At Bottom of each pg I see -
http://localhost/mysite/page_xyz.cfm?....
This is the window opening code I am using (note status=no)
<script LANGUAGE="JavaScript">
<!--
var str = "left=300,screenX=300,top=300,screenY=300";
if (window.screen) {
var ah = screen.availHeight - 40;
var aw = screen.availWidth - 50;
str += ",height=150";
str += ",innerHeight=150";
str += ",width=220";
str += ",innerWidth=220";
str += ",status=no,scrolling=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=yes";
}
//window.name = "different"; // this names current window and forces a new window with the features above.
pagetoload = "http://localhost/mysite/page_xyz.cfm?saw=" + aw + "&sah=" + ah + "&PID=<cfoutput>#thisPID#</cfoutput>";
win = window.open(pagetoload,"myxyz",str); // name this window for reference later
//-->
</script>