The simplest way to do this is as follow:
Add a HTML element to a page and add javascript inside the element.

1 Like