w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: HTML DOM idÊôÐÔ
The id property sets or returns the id of an image.
idÊôÐÔ¿ÉÓÃÀ´·µ»Ø»òÉèÖÃͼƬµÄid
imageObject.id=id |
The following example returns the id of an image in two different ways:
ÏÂÃæµÄ¾ÙÀý½«ÓÃÁ½ÖÖ²»Í¬µÄ·½Ê½À´½«Í¼Æ¬µÄid·µ»Ø³öÀ´£º
<html> <script type="text/javascript"> </body> |
Get the id of an image
µÃµ½Í¼Æ¬µÄid
ÆÀÂÛ (0)
All