Re: How to set the Name of a button by JavaScript
- From: Martin Honnen <mahotrash@xxxxxxxx>
- Date: Mon, 31 Oct 2005 20:06:39 +0100
Stefan Mueller wrote:
In whatever way, I don't understand the command 'xelement.id = xelement.name = "MyButton"' with two '=' but it works.
It is simply a shorthand for
xelement.name = 'MyButton';
xelement.id = 'MyButton';
An assignment is an expression that evaluates to the assigned value so you can chain them the way I did.
--
Martin Honnen http://JavaScript.FAQTs.com/ .
- Follow-Ups:
- Re: How to set the Name of a button by JavaScript
- From: Stefan Mueller
- Re: How to set the Name of a button by JavaScript
- References:
- How to set the Name of a button by JavaScript
- From: Stefan Mueller
- Re: How to set the Name of a button by JavaScript
- From: Stefan Mueller
- How to set the Name of a button by JavaScript
- Prev by Date: Re: How to set the Name of a button by JavaScript
- Next by Date: Re: How to set the Name of a button by JavaScript
- Previous by thread: Re: How to set the Name of a button by JavaScript
- Next by thread: Re: How to set the Name of a button by JavaScript
- Index(es):