Plug-in JavaScript Chapter 11, Example 87 (Click on the icon to view the source for copy and pasting)
» Run this code now (Right click and select Back to return from the example)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html><head><title>Plug-in JavaScript: Example 87</title>

<script src="PJ.js"></script>


<div id='a'></div>


window.onload = function()
   url  = 'ajaxpost.php'
   args = 'url='
   PostAjaxRequest('a', todiv, url, args)

   function todiv()
      var rss = this.replace(/\</g, '&lt;')
      rss     =  rss.replace(/\>/g, '&gt;')
      rss     =  rss.replace(/\n/g, '<br />')
      O('a').innerHTML = rss