How can I add JavaScript inside Blogger?

Patrioticcow picture Patrioticcow · Jun 23, 2011 · Viewed 62k times · Source

I would like to add some JavaScript inside Blogger.

<script type="text/javascript">
window.open("http://www.page.html", "myWindow", 
    "status = 1, height = 400, width = 400, resizable = 0");
</script>

If I edit the HTML and I add " and ' they get converted to quote ...

If I add an HTML/JavaScript widget the code won't run.

Answer

George Cummins picture George Cummins · Jun 23, 2011

Navigate to the Layout tab, click the "Add a Page Element" option and select the "HTML/Javascript" sub-option.

See the Layout Guide for more details.