[greasemonkey-users] How to change width="...." value for all tags in ONE statement?

Fri, 30 Mar 2012 07:36:00 -0700

In the last post you told me how to remove an attribute completely.
Thank you.

1.) But as far as I can from this page:

https://developer.mozilla.org/en/DOM/element.removeAttribute

I have to do this for IDs tags individually.
Is there a way to do this for all DIV tags or TABLE tags in ONE statement?

In other words is there a way to code:

document.getElementById("div").removeAttribute("align"); 

or

document.getElementById("div*").removeAttribute("align"); 

or

document.getElementById("table*").removeAttribute("align"); 


2.) Furthermoe: How does that statement lloks like if I want to change it e.g. 
from

<table width="565px" ....> 

to

<table width="98%" ....> 

Thank you
Ben





-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to