I have a pop-up window that opens from a mouse over link. The pop-up window has a Print button on it. When I click the button the print dialog does not come up. If I put my mouse back over the link the print dialog box will then launch. Please help. Here is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns=" >
<head>
<title>Untitled Page</title>
</head>
<body>
<script>
function open_new_window1()
{
var new_window = open("","hoverwindow","width=400,height=200,left=500,top=300");
// open new document
new_window.document.open();
if (window.focus)
{
new_window.focus()
}
new_window.document.write("<html><title>JFS</title>");
new_window.document.write("<body bgcolor=\"#FFFFFF\">");
new_window.document.write("This is WINDOW #1 ");
new_window.document.write('<form>');
new_window.document.write('<input type=\"button\" value=\"Print this page\" onClick=\"print()\"/>');
new_window.document.write('</form>');
new_window.document.write('</body>');
new_window.document.write('</html>');
}
</script>
<br />
<a href="#" onMouseOver="open_new_window1()">Open Hover Window 1</a>
<br />
</body>
</html>
THANKS! xanalyth@hotmail.com
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns=" >
<head>
<title>Untitled Page</title>
</head>
<body>
<script>
function open_new_window1()
{
var new_window = open("","hoverwindow","width=400,height=200,left=500,top=300");
// open new document
new_window.document.open();
if (window.focus)
{
new_window.focus()
}
new_window.document.write("<html><title>JFS</title>");
new_window.document.write("<body bgcolor=\"#FFFFFF\">");
new_window.document.write("This is WINDOW #1 ");
new_window.document.write('<form>');
new_window.document.write('<input type=\"button\" value=\"Print this page\" onClick=\"print()\"/>');
new_window.document.write('</form>');
new_window.document.write('</body>');
new_window.document.write('</html>');
}
</script>
<br />
<a href="#" onMouseOver="open_new_window1()">Open Hover Window 1</a>
<br />
</body>
</html>
THANKS! xanalyth@hotmail.com