Problem with HTML project I'm making

I'm trying to make a project that you can code using HTML, however, if you put JavaScript functions into your HTML code, they won't work. I can't figure out why.

Because script tags only work on page load.
Use open("about:blank","html","_blank").document.body.innerHTML=.... instead and no need to do the splitting work.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.