Use bat script to add trusted site for IE

29

Here is a TechNet posting which might help you.

DISCLAIMER: Use at your own risk. It is advisable to make backups before proceeding.

Adding trusted Sites for all users

The answer marked as correct states:

Try to add these four keys.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\mytest.org]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\mytest.org\pacs] "https"=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\EscDomains\mytest.org]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\EscDomains\mytest.org\pacs] "https"=dword:00000002

Share:
29

Related videos on Youtube

Riri
Author by

Riri

Updated on September 18, 2022

Comments

  • Riri
    Riri over 1 year

    i created input named "quantity" that has a value of 30, and the 2nd input named "sold"

    $(document).ready(function() {
      $("#sold,#quantity").keyup(function() {
        var total = 0;
        var y = Number($("#quantity").val());
        var x = Number($("#sold").val());
        var total = y - x;
        $("#quantity").val(total); // the result will be showed in "quantity"
      });
    });
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <table width="100">
      <tr>
        <td>Quantity</td>
        <td>Sold</td>
      </tr>
      <tr>
        <td><input type="text" id="quantity" value="30"></td>
        <td><input type="text" id="sold"></td>
      </tr>
    </table>

    should looks like this

    Quantity: 30 Sold: (input something)
    

    now i added some script that any value inputs from sold will subtract the value from quantity automatically

    example output:

    Quantity: 28 Sold: 2 
    // 30 is the original value of quantity subtracted by 2 is 28
    

    now for example if i will clear my input on sold the quantity its still has the value of 28

    Quantity: 28 Sold: (cleared/removed)
    

    my question what should i do to return the original value of quantity which is 30 even i clear my input in sold

    expected output:

    Quantity: 30 Sold: (cleared/removed)
    
    • CharlieRB
      CharlieRB over 10 years
      What version of Windows and IE?
    • Many Dollars
      Many Dollars over 10 years
      @CharlieRB I run it on windows 7 with IE 8
  • Khalid
    Khalid over 9 years
    This does not seem to work with Internet Explorer 11 on Windows 8.1.
  • CharlieRB
    CharlieRB over 9 years
    That's because this answer is for Windows 7.