Find a website widget on the Internet or download it on a resource dedicated to creating similar items for webmasters. You can use both an external program, the code for which it will be enough to insert on the page, and a separate file with the extension .js, which can be downloaded from the Internet. The JS file must be saved on the computer in a single directory or in a separate folder relative to the HTML file of your page.
Open the site page to which you want to add a widget using the text editor you use. You can also use the standard Notepad utility, which is available on Windows by default. To access it, right-click on your page and select “Open with”, and select “Notepad” from the list that appears.
Go to the desired section of code where you want to insert the widget. After that, enter the following code:
V the type parameter specifies the type of plug-in widget (Java Script), and the src section specifies the address of this extension on the Internet. If you are using a downloaded or native JS file, in the src parameter you can specify an absolute or relative path to the file with the .js extension. For example, if a widget.js document is located in a widget folder that is located in the same directory with the HTML file being edited, type:
Save the changes to the edited file using the File – Save option and check the widget’s health on your page. Installation of extension for your site is complete