Examining DIV tags in a document 
Author Message
 Examining DIV tags in a document

Set divs = document.all.tags('DIV')

You need the Set since what is returned is a collection...

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup...
--


Quote:
> Does VBScript have an equivalent to the following JavaScript statement?

>     divs = document.all.tags('DIV')

> It returns an array that can be used to loop through the DIVs in a document,
> and examine and change their properties.



Tue, 13 May 2003 03:00:00 GMT  
 Examining DIV tags in a document
Does VBScript have an equivalent to the following JavaScript statement?

    divs = document.all.tags('DIV')

It returns an array that can be used to loop through the DIVs in a document,
and examine and change their properties.



Wed, 14 May 2003 08:25:13 GMT  
 Examining DIV tags in a document
Thank you very much, that did the trick.


Quote:
> Set divs = document.all.tags('DIV')

> You need the Set since what is returned is a collection...

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --

> Please do not email questions - post them to the newsgroup...
> --



> > Does VBScript have an equivalent to the following JavaScript statement?

> >     divs = document.all.tags('DIV')

> > It returns an array that can be used to loop through the DIVs in a
document,
> > and examine and change their properties.



Wed, 14 May 2003 12:57:35 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. ActiveX Control Covers all other div tags

2. ActiveX Control Covers all other div tags

3. ActiveX Control Covers all other div tags

4. corresponding indexes in document.all and document.all.tags()

5. Print a word document built from multiple sub documents using the RD tag

6. Examining a web browser document

7. DHTML and DIV tags

8. top anf left Div tag style properties not showing as expected

9. Add text to a DIV tag

10. Controling the DIV tag's style

11. referencing the DIV tags by number and not by id

12. <DIV> tag help please

 

 
Powered by phpBB® Forum Software