Amin wrote:
> ok i don't mean that label doesn't have id, i want to set its value
> using a function instead direct typing
>
> <label value="here!!!!!!!" style="font-weight: Bold; " />
>
Lets say your label has an id <label id="myLabel" value="here!!!!!!"
style =blah/>
then in code:
document.getElemenetById("myLabel").setAttribute("value", "Hi There!!!!!");
> <label value=MyFunction style="font-weight: Bold; " />
>
>
> On 2/7/07, *Chris Neale* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
> On Wednesday 07 February 2007 15:34, Amin wrote:
> > hello
> >
> > any body know how to replace "here!!!!!!!" with a function that
> is defined
> > in Update.js
> >
> > <script
> > type="application/x-javascript"
> > src="chrome://inbasicph/content/Update.js"
> > />
> >
> > <label value="here!!!!!!!" style="font-weight: Bold; " />
>
> Would be much easier if <label/> had an id
>
> although ...
>
> you could probably search all label elements find the one(s) with
> value
> == 'here!!!!!!!' and then set value attribute to something else
>
> --
>
> cdn
>
> --
>
> feedback -at- mozdev -dot- org is for comments *not* about a
> specific project
>
> http://gifts-for-free.co.uk
>
> Extensions for Mozilla-based Applications [ http://cdn.mozdev.org/ ]
> _______________________________________________
> Project_owners mailing list
> [email protected] <mailto:[email protected]>
> http://mozdev.org/mailman/listinfo/project_owners
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Project_owners mailing list
>[email protected]
>http://mozdev.org/mailman/listinfo/project_owners
>
>
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners