2

The Local Group Policy Editor in Windows 7 has a policy option to restrict the running of "scriptlets". This option can be found in Computer Configuration > All Settings > Allow scriptlets and looks as shown in below image.

The setting to allow or disable scriptlets

Presumably scriptlets are files containing some kind of programming code, but I have some questions I would like to ask:

The policy says that it is supported on "At least Internet Explorer 7.0.".

  1. Does blocking scriptlets have an effect on the JavaScript executed in the browser when visiting websites?
  2. Or are these scriptlets some code running purely locally?
  3. What programming language(s) are supported for these scriptlets?
1
2

Does blocking scriptlets have an effect on the JavaScript executed in the browser when visiting websites?

This particular group policy does not determine if JavaScript is executed or not executed within IE. That behavior is handled by an entirely different group policy.

Or are these scriptlets some code running purely locally?

A scriptlet could ran from a remote url or a local url.

What programming language(s) are supported for these scriptlets?

HTML/DHTML and VBScript

A scriptlet is an HTML code file that has either an .sct or an .htm extension. You can create scriptlets by using HTML code and VBScript code, JScript code, or both, and you can create them in any HTML editor.

Understanding Scriptlets and Behaviors:

A scriptlet is a lightweight, reusable Component Object Model (COM) component that consists of HTML code and script and is created according to certain conventions. A behavior is a lightweight component that encapsulates specific functionality. When applied to an HTML element, a behavior enhances the element's default behavior.

Scriptlets and behaviors are very similar in that they both contain script in a separate document that exposes functionality that can be used in a Web page. They differ in that behaviors are STYLE attributes that point to a separate file containing script that is called in response to an event associated with an HTML element. Scriptlets, on the other hand, can be used for almost anything you can do with script in a Web page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.