Wednesday, September 08, 2010

Embed Javascript in blog post

This shows a simple example of embedding Javascript in blogger. Not sure if this is supported as it messes up the anchor tag when post is edited using "Compose" instead of "Edit HTML".

Click on "Hello world" below to see Javascript in action.
Hello world


The key to embed the script is the CDATA tag.
Hello world


Reference(s):
Adding javascript to Blogger posts (link)

No comments:

Rust and WebAssembly quick start guide 2025

Rust and WebAssembly quick start guide 2025 As of December 2025, Rust and WebAssembly is reorganizing. Documentation is currently out of da...