Anyone have ideas on how to get this Javascript working with an HTML element?

@julienallard1, any thoughts? Found your examples quite helpful over in the thread on saving input content using HTML.