<h2>ajax replacing link</h2> <a href="backend.php?return=time" onclick="new Ajax.Updater('testdiv', 'backend.php?return=time', {asynchronous:true, evalScripts:true }); return false;"> This link updates a line</a> <div id="testdiv"></div>
With no JavaScript turned on, it'll go to the normal URL. Without, it'll do an XMLHTTPRequest and put the result in #testdiv.