Re: RePost: Display Property Problem with Netscape

by Andrew McFarland <aamcf(at)aamcf.co.uk>

 Date:  Wed, 01 May 2002 21:19:35 +0100
 To:  hwg-style(at)hwg.org
 In-Reply-To:  ncweb
  todo: View Thread, Original
At 15:38 30/04/02 -0400, Andy & Victoria wrote:
<snip/>
>I'm trying to fiqure out how to script Netscape 6.2 to implement CSS2 
>Display Property dynamically.

<snip/>

><span id="oSpan">This is a SPAN </span>in a sentence.
><form>
>    <input type="button" value="change" onclick="oSpan.style.display='none'">
></form>

Try onclick="document.getElementById('oSpan').style.display='none'"

document.getElementById() is very useful and is well worth getting 
acquainted with :)

Andrew

HWG hwg-style mailing list archives, maintained by Webmasters @ IWA