Display widget on remote sites

I think this is possible in JavaScript with some functions:
- document.write
- innerHTML
- appendElement

Search about these methods and you will find the best way to do your
application.
Bye.