UNPKG

script-injector

Version:

Inject inline javascript into an HTML stream.

14 lines (13 loc) 215 B
<!DOCTYPE html> <html> <head> <title>Hello World</title> </head> <body> <script type="text/javascript"> ;(function someCode() { console.log("I'm some code to be inserted inline"); })() </script> </body> </html>