D
DoomedLung
Hey everyone, I have a function that loads the current document into a
new window and switches the style sheet. The function works fine for
IE but not for other browsers. here is the code:
<!--
var winLoc = window.location;
function swithStyleSheet()
{
var w = window.open(winLoc);
var d = w.document;
d.getElementById('globalStyleSheet').href="css/globalPrint.css";
d.close;
w.close;
}
//-->
Any help would be much appreciated
Cheers DoomedLung
new window and switches the style sheet. The function works fine for
IE but not for other browsers. here is the code:
<!--
var winLoc = window.location;
function swithStyleSheet()
{
var w = window.open(winLoc);
var d = w.document;
d.getElementById('globalStyleSheet').href="css/globalPrint.css";
d.close;
w.close;
}
//-->
Any help would be much appreciated
Cheers DoomedLung