Sunday, August 22, 2010

JavaScript in Blogger Posts

An ongoing theme of this web site will be what sorts of data and code can embedded inside of Blogger (or WordPress or other mass-market on-line technologies that put few if any limits storing and transmitting content).

In the first experiment, it is revealed that Blogger allows you to embed external JavaScript in its posts.

Here is a some text generated by JavaScript:

The code looks like this:
<script type="text/javascript">
document.write("<b>This message is written by JavaScript code embedded in this post.</b>");
Here is some text generated by an external JavaScript file:

The code looks like this:
<script src="" type="text/javascript">

No comments:

Post a Comment