autoprint is working in IE and is printing a empty page in FF
Hy,
This script is working very good in IE and there is a perfect print.
When i try it under FF than is everything good accept the empty page
(only time, date, name and page number)
Can somebody help me to fix this please
THE SCRIPT
Code:
<script type="text/javascript">
<!--
function autoprint()
{
F1 =
window.open("1.htm","_blank","width=310,height=400,left=0,top=0");
F1.focus();
F1.print();
F1.close();
}
//-->
</script>
<a href="javascript:autoprint()";>print</a>
Last edited by Nico; 11-26-06 at 10:24 AM.
Reason: Please use [code] wrappers when posting code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Testing autoprint</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
<!--
function autoprint()
{
F1 = window.open("1.htm","_blank","width=310,height=400 ,left=0,top=0");