HighDots Forums  

Re: Check if document ID exists?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Check if document ID exists? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Check if document ID exists? - 06-23-2004 , 06:02 AM






michael <nomail (AT) example (DOT) com> wrote:

Quote:
I guess this is partly a javascript questions, but is there a way to check
if a CSS id or class exists anywhere on a page.
The id and class attributes are HTML element attributes, not CSS.

Quote:
For example, if the id "bla" exists, it should return true only if the
following tag is on the page:

a href="bla.html" id="bla"
if (document.getElementById("bla") == null) ...

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ๔ter le premier point de mon adresse de courriel.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.