jillallynwilson
Programmer
The following code works in IE 6.0 but not Netscape 7.02.
I noticed that in the File Menu structure in IE the command is 'Save As...', where in Netscape it is 'Save Page As...'.
I tried to change the below code to just call the Save command but that did not work in either browser.
Does anyone know how I can get this to work in Netscape, as well as IE? If I have to detect which browser the user is using that if fine.
Thank you in advanced for any assistance.
________________________________________
<html><head><title>Scott Specialty Gases - eScott Cylinder List Report</title>
<script>
function save()
{
mydoc = window.document
mydoc.execCommand("saveAs", false, " ");
}
</script>
<style type="text/css">
<!--
body, td { font-family : Arial, Helvetica, sans-serif; font-size: 12px;
font-style: normal}
.THeading {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-style: normal;
font-weight: bold;
text-align: left;
background-color: #E2E2E2;}
a:active {color: #3163CE; Text-Decoration : underline;}
a:link {color: #3163CE; text-decoration: underline}
a:visited {color: #3163CE; text-decoration: underline}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="3" topmargin="0" marginwidth="0" marginheight="0">
<img src="/ScottGas/graphics.nsf/Images/logo1/$FILE/logo1.gif"><br><a href="#" onClick="self.close()">Close Window</a> <a href="#" onClick="save()">Save As</a><p>
code continued.......
I noticed that in the File Menu structure in IE the command is 'Save As...', where in Netscape it is 'Save Page As...'.
I tried to change the below code to just call the Save command but that did not work in either browser.
Does anyone know how I can get this to work in Netscape, as well as IE? If I have to detect which browser the user is using that if fine.
Thank you in advanced for any assistance.
________________________________________
<html><head><title>Scott Specialty Gases - eScott Cylinder List Report</title>
<script>
function save()
{
mydoc = window.document
mydoc.execCommand("saveAs", false, " ");
}
</script>
<style type="text/css">
<!--
body, td { font-family : Arial, Helvetica, sans-serif; font-size: 12px;
font-style: normal}
.THeading {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-style: normal;
font-weight: bold;
text-align: left;
background-color: #E2E2E2;}
a:active {color: #3163CE; Text-Decoration : underline;}
a:link {color: #3163CE; text-decoration: underline}
a:visited {color: #3163CE; text-decoration: underline}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="3" topmargin="0" marginwidth="0" marginheight="0">
<img src="/ScottGas/graphics.nsf/Images/logo1/$FILE/logo1.gif"><br><a href="#" onClick="self.close()">Close Window</a> <a href="#" onClick="save()">Save As</a><p>
code continued.......