long story short innerText refers to the text part of <a href="bla">this is
innerText</a>

innerHTML refers to the whole anchor tag.

Expermint
----------
<div id="foo">
<a href="bla">this is innertext</a>
</div>
<button onClick="alert(foo.innerText)">InnerText of div</button>
<button onClick="alert(foo.innerHTML)">InnerHTML of div</button>
-----------
run the code above and check the spelling of innerHTML, I am not certain
that it is all cap's.

Bryan

-----Original Message-----
From: Keith Purtell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 2:46 PM
To: [EMAIL PROTECTED]
Subject: RE: [KCFusion] innerText Help!


What are "innerText" and "innerHTML"?

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of LaPlante, Bryan
Sent: Tuesday, March 12, 2002 2:28 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [KCFusion] innerText Help!


use innerHTML instead

-----Original Message-----
From: Justin Hansen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 1:41 PM
To: [EMAIL PROTECTED]
Subject: [KCFusion] innerText Help!


I am trying to replace a whole table in side a div tag with a new table. The
new contents of the div contain quotes (") and ticks ('). How can I escape
them with JavaScript so the 'innerText' will work?

Justin Hansen
--------------------------
Uhlig Communications
Web Developer / Programmer
--------------------------
[EMAIL PROTECTED]
913-498-0123 ext 284
--------------------------

 
 
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]
 
 
 
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]
 

Reply via email to