Задайте вопросЗадайте вопрос
 

ОтвеченоIE8 HTA Print lost focus

  • 24 ноября 2009 г. 23:46John.Jin Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    Hi guys, we have a HTA software running some CRM functions like Invocing / Ordering. Under IE6 everything is OK. Recently we planned to switch over to IE8 but one of the problems is printing issue.
    We are using the following code to start print, the print dialog will appear and click the "print" button on the dialog will send the page to the printer. But immediately it jumps away to an other opened application (like Excel).

    "<A HREF="javascript: void(0);" ID="print" ONCLICK="window.print();">Print</A> "

    I also tried an other way as the following code, it still jumps away for a little while but then jumps back again.

    "<

    A HREF="javascript: this.focus();" ID="print" ONCLICK="window.print();">Print</A>"

    Is it a bug for IE8?

Ответы

Все ответы