Re: script on page
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: script on page

From: alu <none@none.com>
Date: Mon Aug 29 2005 - 17:58:24 CEST

"P4tryk" <p4tryk@patryk.pl> wrote

> <script>
> function go()
> {
> getElementById("replaceContent").innerHtml=httpReq.text;
> }
> </script>

> How to make the script from added innerHtml to run.

innerHTML is case sensitive, and getElementById is a method of the document
object.

The correct syntax would be:

document.getElementById("replaceContent").innerHTML=httpReq.text;

-alu
Received on Tue Oct 18 03:14:14 2005