Chrome is not an editor, so you cannot just embed HTML code. However, since javascript is a scripting language, you can go to the javascript console under the tools in Chrome, where you can run javascript code, although it will not save it on the website.
source share