Hai..
i was trying to open the page and print that page , then close the close.. and comes back to original page.. i had the tried the following code but it does work eg
a)
---
<script type="text/javascript">
window.print();
window.close();
</script>
b)
----------
<script type="text/javascript">
var document_focus = false; // var we use to monitor document focused status.
// Now our event handlers.
$(document).focus(function() { document_focus = true; });
$(document).ready(function() { window.print(); });
setInterval(function() { if (document_focus === true) { window.close(); } }, 500);
</script>
---
(b)
<script>window.onload= function () { window.print();window.close(); } </script>
we can the print the page but it does not close the page..
event i had tried on load event ...
Go to the complete details ...