Window.Print does not work in firefox 12 version so that the same works in IE

Here is an excerpt of the source of the page in my application:

<script language='javascript'>
			function fncPrint()
			{
				document.getElementById("btnPrint").style.visibility="hidden";
				document.getElementById("btnClose").style.visibility="hidden";
				window.print();
				document.getElementById("btnPrint").style.visibility="visible";
				document.getElementById("btnClose").style.visibility="visible";
			}
</script>

<td align='center' colspan='10'>
	<input type='button' class='button' value='Print' name='btnPrint' onclick='fncPrint()'>
	<input type='button' class='button' value='Close' name='btnClose' onclick='window.close()'>
</td>

This code works fine in IE, but when it is used with firefox does nothing, it won't print. I can use Ctrl + P, but it will not drop the print and close buttons.

You use document.getElementById("btnPrint"), but you specify only the NAME attribute in the entry tags and not the code.

Then you will need to add the ID, as well to make Firefox find this element.

<input type='button' class='button' value='Print' id='btnPrint' name='btnPrint' onclick='fncPrint()'>
<input type='button' class='button' value='Close' id='btnClose' name='btnClose' onclick='window.close()'>

Tags: Firefox

Similar Questions

  • My printer does not work on Firefox?

    My printer does not work on Firefox? It works on explore?

    "My printer does not work on Firefox" gives no details on the problem. It is a good starting point:

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You must update some plug-ins:

  • My canon s200spx printer does not work on windows 7. I can't find a drive

    My canon s200spx printer does not work on windows 7. I can't find a drive

    Hello

    1. do you have a code error message when you try to print?

    2. don't you make changes to the computer before the show?

    3. you are unable to find the drivers for the printer?

    I suggest for the link and follow the steps in the article:

    Solve printer problems

    http://Windows.Microsoft.com/en-us/Windows/printer-problems-in-Windows-help#fix-printer-problems=Windows-7&V1H=win8tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    You can also download and install the latest drivers from the manufacturer's website:

    Reference:

    http://www.USA.Canon.com/Cusa/support/consumer/printers_multifunction/s_series/S200#DriversAndSoftware

    Hope this solves the problem. If the problem persists, you can write to us and we will be happy to help you further.

  • printer does not work in the windows machine 8

    my printer does not work in this new machine of windows 8. tried everything to fix the problem. It won't send email documents to the printer either. just doesn't get it. Ive had kodak install drivers, and just, it will not work on this computer. It was fine on windows vista. the printer is set by default on this computer, then why it wont work on this one. not happy with windows 8 at all. wish I never bought it

    Hello

    As Kodak OEM is responsible for the good operation of the printer and their
    drivers provided. Check their documentation online, with the support of Kodak, and
    drivers.

    Good luck, you need to update or reinstall the latest driver.

    Kodak - printers
    http://support.en.kodak.com/app/home/src/gosupport/selected/true

    Kodak - Support and downloads
    http://support.kodak.com/app/intfSel/intf_redirect/L2FwcC9ob21lL3NyYy9nb3N1cHBvcnQvc2VsZWN0ZWQvdHJ1ZS9jaGFuZ2UvdHJ1ZS9vcmlnX2ludGYva29kYWtfYjJjX2Vu/change_country/true

    ====================================================

    The main issue is probably the drivers, but these can help:

    Windows 8 - Fix printer problems
    http://Windows.Microsoft.com/en-us/Windows/printer-problems-in-Windows-help#fix-printer-problems=Windows-8&V1H=win8tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    Windows 8 - How to troubleshoot printing problems in Windows
    http://Windows.Microsoft.com/en-us/Windows-8/How-to-solve-printing-problems

    Windows 8 - install a printer
    http://Windows.Microsoft.com/en-us/Windows-8/install-a-printer

    Windows 8 - find and install printer drivers
    http://Windows.Microsoft.com/en-us/Windows-8/find-and-install-printer-drivers

    I hope this helps.
    --------------------------------------------------------------------------------------------
    Rob Brown - Microsoft MVP<- profile="" -="" windows="" and="" devices="" for="" it :="" bicycle="" -="" mark="" twain="" said="" it="">

  • my printer does not work well

    MY PRINTER DOES NOT WORK WITH FIREFOX. WHAT DO I DO? THANK U

    https://support.Mozilla.org/en-us/KB/how-print-websites

  • Smart Web printing does not work in IE9

    Smart Web printing does not work in IE9...

    I tried option, uninstall web printing smart hp and reinstalled. now it works... also if you use a pop up blocker, then you have to give permission to allow access to this site. It will come up as a small secondary window and print as did former windows messages.

  • New Modem - like get a new modem my printer does not work

    Since obtaining a new modem, my printer does not work. The printer is a HP 4500 wireless all-in-one. What should I do?

    Hi reillydebra,

    1. you have made no changes to the computer before the broadcast took place?
    2. do you get an error message?
    3. what operating system do you use?

    If you use Windows 7, try the steps from the following link:

    Printer in Windows problems
    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    Why can I not print?
    http://Windows.Microsoft.com/en-us/Windows7/why-cant-I-print

    Additional information:
    Check if you need to open ports in the modem.
    http://h20563.www2.HP.com/p/_wireless/troubleshooting.html
    http://h10025.www1.HP.com/ewfrf/wc/documentSubCategory?tmp_rule=59455&tmp_task=solveCategory&cc=us&DLC=en&lang=en&LC=en&product=3919449

  • MS Office 2010 Pro and my printer does not work,

    I just installed MS Office 2010 Pro and my printer does not work, I tried to print a test page for the printer, but that prints either, ask if I want to troubleshoot the printer and when I click on Yes, I get a message that there is a problem of ActiveX.  The printer will not print not any application, but it worked before installing office.
    All the apps work except in order to print it.
    I am running WinXPPro w/sp3.

    Jim K.

    Hello

    1. What is the exact error message?
    2. don't you make changes on the computer before the show?
    3. What is the brand and model of the printer?
    4. this problem occurs with all files that contain the Active X objects or specific file?

    Method 1:
    Run the fix it and check.
    http://support.Microsoft.com/mats/printing_problems/en-us

    Method 2:
    Try the steps in the link and check.
    Printer in Windows problems
    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    Method 3:

    This problem occurs if the security settings for the Local computer zone are configured to prevent the ActiveX content to run.

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: http://windows.microsoft.com/en-US/windows-vista/Back-up-the-registry : how to back up and restore the registry in Windows

    a. Click Start and run, type regedit.exe, and then click OK.

    b. expand the following registry subkey:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0

    (c) in the right pane, right-click 1200 and then click on edit.

    d. in the value data box, type 0. Then, click OK.

    e. close the registry editor.

  • Windows 7 reports as "Not true" after replacement drive. Windows Update does not work. Any idea?

    I got a report that my drive was in imminent danger of failure.   Bought and made a direct disc-copy of the old disk cloning.    Everything seems to work fine, but now I'm getting the pop up that says Windows is "not true."    Windows shows as active, and nothing I've tried will stop the pop-up.  Worse, Windows Update does NOT work, and without running a few updates, I'm dead in the water for the use of new devices.

    I ran MGADiag.   Here is that content.   Any help is greatly apprectiated!

    ----------------------------------------------------------------------------------------------------------

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->

    Validation code: 0x8004FE21
    Validation caching Code online: n/a, hr = 0xc004f012
    Windows product key: *-* - QCPVQ - KHRB8-RMV82
    Windows product key hash: + Rj3N34NLM2JqoBO/OzgzTZXgbY =
    Windows product ID: 00359-OEM-8992687-00095
    Windows product ID type: 2
    Windows license Type: OEM SLP
    The Windows OS version: 6.1.7601.2.00010300.1.0.003
    ID: {F8417B78-D747-4A8A-9ED2-D65405A9DA4E} (1)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: Windows 7 Home Premium
    Architecture: 0 x 00000009
    Build lab: 7601.win7sp1_gdr.140303 - 2144
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 100 authentic
    Microsoft Office Enterprise 2007 - 100 authentic
    Microsoft Office Home and Student 2007-100 authentic
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 77F760FE-153-80070002_7E90FEE8-175-80070002_025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3_E2AD56EA-765-d003_E2AD56EA-766-0_E2AD56EA-134-80004005_E2AD56EA-765-b01a_E2AD56EA-766-0_E2AD56EA-148-80004005_16E0B333-89-80004005_B4D0AA8B-1029-80004005_B4D0AA8B-920-80070057

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files (x 86) \Mozilla Firefox\firefox.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->
    [File mismatch: C:\Windows\system32\wat\watadminsvc.exe[7.1.7600.16395], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\wat\watux.exe[7.1.7600.16395], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\sppobjs.dll[6.1.7601.17514], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\sppc.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppcext.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppwinob.dll[6.1.7601.17514], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\slc.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\slcext.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppuinotify.dll[6.1.7600.16385], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\slui.exe[6.1.7601.17514], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\sppcomapi.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppcommdlg.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppsvc.exe[6.1.7601.17514], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\drivers\spsys.sys[6.1.7127.0], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\drivers\spldr.sys[6.1.7127.0], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\systemcpl.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\user32.dll[6.1.7601.17514], Hr = 0x800b0100

    Other data-->
    Office details: {F8417B78-D747-4A8A-9ED2-D65405A9DA4E}1.9.0027.06.1.7601.2.00010300.1.0.003x 64*-*-*-*-RMV8200359-OEM-8992687-000952S-1-5-21-3615725035-2700926363-1652036055Dell Inc.. Inspiron 1545 Dell Inc.. A11 20090827000000.000000 + 00070FD3607018400F804090409Central Standard Time(GMT-06:00)03DELL WN09 100100Microsoft Office Enterprise 20071264BC76978749586GW6PzcEVEDTVKeO5Ym5UUm41dBk =89388-707-0441865-6559414100Microsoft Office home and Student 20071219

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.1.7601.17514

    Name: Windows 7 HomePremium edition
    Description: operating system Windows - Windows (r) 7, channel OEM_SLP
    Activation ID: d2c04e90-c3dd-4260-b0f3-f845f5d27d64
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 00359-00178-926-800095-02-1033-7600.0000-3312009
    Installation ID: 004293808462381663381400261494038926624675101980836995
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
    The machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=88341
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
    Partial product key: RMV82
    License status: licensed
    Remaining Windows rearm count: 3
    Trust time: 22/06/2015-13:55:06

    Windows Activation Technologies-->
    HrOffline: 0x8004FE21
    HrOnline: n/a
    Beyond: 0x000000000001EFF0
    Event timestamp: 6:22:2015 11:15
    ActiveX: Registered, Version: 7.1.7600.16395
    The admin service: recorded, Version: 7.1.7600.16395
    Output beyond bitmask:
    Altered the file: %systemroot%\system32\sppobjs.dll
    Altered the file: %systemroot%\system32\sppc.dll|sppc.dll.mui
    Altered the file: %systemroot%\system32\sppcext.dll|sppcext.dll.mui
    Altered the file: %systemroot%\system32\sppwinob.dll
    Altered the file: %systemroot%\system32\slc.dll|slc.dll.mui
    Altered the file: %systemroot%\system32\slcext.dll|slcext.dll.mui
    Altered the file: %systemroot%\system32\sppuinotify.dll|sppuinotify.dll.mui
    Tampered files: Check %systemroot%\system32\slui.exe|slui.exe.mui|COM
    Altered the file: %systemroot%\system32\sppcomapi.dll|sppcomapi.dll.mui
    Altered the file: %systemroot%\system32\sppcommdlg.dll|sppcommdlg.dll.mui
    Altered the file: %systemroot%\system32\sppsvc.exe|sppsvc.exe.mui
    Altered the file: %systemroot%\system32\drivers\spsys.sys

    --> HWID data
    Current Hash HWID: LgAAAAEAAQABAAIAAAABAAAAAgABAAEAeqj + MrAO2jOkW3YOKB9UbRq90qZGyg ==

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes
    Windows marker version: 0 x 20001
    OEMID and OEMTableID consistent: Yes
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    APIC DELL WN09
    FACP DELL WN09
    HPET DELL WN09
    MCFG DELL WN09
    WN09 DELL SLIC
    SSDT PmRef CpuPm

    This may simply be caused by a bad set of drivers of technology Intel Rapid Storage Technology-

    Intel rapid storage driver installation

    try to download and install them from here - https://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&ProdId=2101&DwnldID=22194

    (you want the download of iata_enu.exe)

    Once complete, please restart twice, then after another MGADiag report.

  • My printer does not work - sometimes error 41

    My printer does not work - sometimes error 41... What ever that is?

    Hi Audrey,.

    Welcome to Microsoft communities.

    From your description, I understand that you are unable to print you get an error 41.

    1. What is the brand and model of the printer?

    2. when exactly you get the error message and what is the full code error message?

    3. did you of recent changes made to your computer before the show?

    4. using a printer or wireless?

    Method 1: Run the troubleshooter

    Open the printer Troubleshooter

    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    Method 2: Run the fixit:

    Diagnose and automatically fix problems printing and printer

    http://support.Microsoft.com/mats/printing_problems/

    Method 3: Follow the steps in the link:

    Printer in Windows problems

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    Please report if you are still having the problem. I'll be happy to provide you with additional options available that you can use to get this problem is solved.

  • After recent, iPhone, 6, update, Windows, Explorer, does not work, see, iPhone

    I installed the latest update required for my iphone ios 6 a few days ago, and now when I try to download pictures from my iphone to my PC (via USB connection), the PC does not see the iphone.   iTunes sees it yet, but windows Explorer does not work.  It seems that some setting has been broken through the update of ios.  A way to solve this problem?

    Restart the computer and the iPhone. Unlock the iPhone before connecting it to the computer. Any change?

    TT2

  • I downloaded the new software recently and now my Epsom printer does not work

    iMac late 2009. Processor 3.06 GHz

    Hi, I downloaded the new software recently and now my Epsom printer does not work and my Wi - Fi on the computer keeps dropping out.

    I spoke with Epsom and they recommended to remove the drivers and reinstall them. Now, I can not install the ad pilots Wi - Fi does not work correctly. The research on this forum I see there have been many problems with the new version of the software. Can someone help me?

    < re-titled by host >

    Try a reboot.

    Make a backup using Time Machine or a cloning program, to ensure that data files can be recovered. Two backups are better than one.

    Try to set up another admin user account to see if the same problem persists. If back to my Mac is enabled in system preferences, the guest account will not work. The intention is to see if it is specific to an account or a system wide problem. This account can be deleted later.

    Isolate a problem by using a different user account

    If the problem is still there, try to start safe mode using your usual account.  Disconnect all devices except those necessary for the test. Shut down the computer and then put it up after a 10 second wait. Immediately after hearing the startup chime, hold down the SHIFT key and continue to hold it until the gray Apple icon and a progress bar appear. Startup is considerably slower than normal. This will reset some caches, forces a check for directory and disables all start-up and connection, among other things. When you restart normally, the initial restart may be slower than normal. If the system is operating normally, there may be 3rd party applications that pose a problem. Try to delete/disable the third-party applications after a reboot using the UN-Installer. For each disable/remove, you need to restart if you do them all at once.

    Safe mode - on El Capitan

    Start Mode without failure-El Capitan.

  • Installed at El Capitan and now HP printer does not work via the network

    Installed at El Capitan and now HP printer does not work via wireless network

    Open system preferences > printers and Scanners and select the print tab.

    Then the right or control click on the HP printer on the left then click: reset the printing system

  • Satellite A300-1EH - windows installer does not work correctly

    Hello, this is my first post on this forum!

    My windows installer does not work correctly.
    What should do?

    Soryy, but I did not now much on computer systems.
    I have reinstall this installer?

    I'm waiting for your answers.

    > My windows installer does not work correctly.
    What do you mean exactly? You see a mistake? What exactly happens?
    Maybe your CD is scratched or damaged.

  • changed router photosmart b110 e-all-in-one printer does not work

    changed router photosmart b110 e-all-in-one printer does not work

    Hi aged60,

    I'm sorry to hear that you have linking problems with your Photosmart B110 printer.

    I've included a link to HP Wireless Printing Center Troubleshooting web page.  In the section entitled "your printer was working on the network before and now is not" there are clear instructions to follow when your router has been changed or updated.  If you follow the instructions you should be able to communicate with your printer.

    HP wireless printing Center - Troubleshooting

    http://www.HP.com/global/us/en/wireless/troubleshooting.html

Maybe you are looking for