search
HomeWeb Front-endJS TutorialWhen to use document and document.all_Basic knowledge


[Ctrl A Select all Note: If you need to introduce external Js, you need to refresh to execute ]

If with a The name attribute is set in the corresponding HTML tag of the form object, image object, and applet object. Its value will be used as the attribute name of the document object to refer to the corresponding object, but other objects cannot.
In addition, if input is used as a sub-element of form, it is wrong to directly use inputName or document.inputName to reference this object. You must use formName.inputName to reference, otherwise you can use inputName to reference.
In addition, you should I noticed that many commonly used elements do not have names.
If you want to reference an element with an id, you can only use Id or document.getElementById, document.all.id to reference it.
But for elements like this, so Like ...
can be used
linkid.href ;
linkname.href;
document.all.linkid.href;
document.all.linkname.href;
document.getElementById("linkid").href;
document.getElementsByName ("linkname")[0].href to quote

all is a collection that contains a collection of all html objects. Write a program that can access all objects. Like this:

Be careful to put the program after
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
华硕主板与R55600(包括R55600u和5600h)兼容的选择华硕主板与R55600(包括R55600u和5600h)兼容的选择Jan 02, 2024 pm 05:32 PM

R55600搭配华硕哪个主板华硕ROGStrixB550-FGaming主板是一个非常出色的选择。它与Ryzen55600X处理器完美兼容,并提供出色的性能和功能。该主板具备可靠的供电系统,可支持超频,并提供丰富的扩展插槽和端口,满足日常使用和游戏需求。ROGStrixB550-FGaming还配备了高品质的音频解决方案、快速的网络连接和可靠的散热设计,确保系统保持高效稳定。此外,该主板还采用了华丽的ROG风格,配备了华丽的RGB照明效果,为您的计算机增添了视觉享受。总而言之,华硕ROGStri

赛扬g4900与i36100相比哪个更优?(赛扬g4900与i34170相比哪个更优?)赛扬g4900与i36100相比哪个更优?(赛扬g4900与i34170相比哪个更优?)Jan 01, 2024 pm 06:01 PM

赛扬g4900和i36100哪个好当涉及到赛扬G4900和I36100这两款处理器时,毫无疑问,I36100的性能更胜一筹。赛扬处理器通常被视为低端处理器,主要用于廉价笔记本电脑。而I3处理器则主要用于高端处理器,其性能非常出色。不论是玩游戏还是观看视频,使用I3处理器都不会出现任何卡顿情况。因此,如果你有可能,尽量选择购买英特尔I系列处理器,特别是用于台式机,这样你就能畅享网络世界的乐趣了。赛扬G4900T性能怎么样从性能方面来看,奔腾G4900T在频率方面表现出色,相比之前的版本,CPU性能

GTA 6 document gives a detailed overview of all leaksGTA 6 document gives a detailed overview of all leaksSep 08, 2024 am 06:37 AM

On September 3, version 1.5 of the Grand Theft Auto VI document which provides a detailed overview of everything that is known about the game to date. The updated version of the document was announced in a trailer published on X (formerly Twitter).??

document.cookie获取不到怎么解决document.cookie获取不到怎么解决Nov 23, 2023 am 10:02 AM

document.cookie获取不到的解决办法:1、浏览器的隐私设置;2、Same-origin policy;3、HTTPOnly Cookie;4、JavaScript代码错误;5、Cookie不存在或过期;6、跨域问题;7、查看器模式;8、服务器问题;9、JavaScript执行时机;10、检查 console log等。

请问如何在关闭技嘉主板GA78LMTS2后关闭鼠标和键盘灯?(技嘉a88主板关机后鼠标灯无法关闭)请问如何在关闭技嘉主板GA78LMTS2后关闭鼠标和键盘灯?(技嘉a88主板关机后鼠标灯无法关闭)Dec 26, 2023 pm 07:58 PM

技嘉主板GA78LMTS2关机后鼠标和键盘灯都亮着怎么关掉啊求助请检查BIOS中是否有"Deeppoweroffmode"模式,即深度掉电模式。该选项位于BIOS的Power设置选项中。如果将此选项设置为启用,关闭计算机后设备将不会亮起技嘉主板dled和led的区别区别如下:1、位置不同:直下式DLED是在液晶面板的后面,LED灯是以矩阵排列;侧入式LED则是将LED灯安装在面板的边框处,使光源从侧面照射出来2、节能:侧入式LED电视比直下式DLED电视更省电DLED和LED的区别在于,DLED

航嘉s980和包豪斯哪个好(航嘉阿波罗和联力包豪斯o11)航嘉s980和包豪斯哪个好(航嘉阿波罗和联力包豪斯o11)Jan 12, 2024 am 11:06 AM

航嘉s980和包豪斯哪个好航嘉(Huntkey)S980和包豪斯(BeQuiet)是两个不同品牌的电脑电源供应器(PSU)制造商。选择哪个更好取决于您的需求和个人偏好得到了消费者的认可和好评。他们的产品广泛应用于个人电脑、服务器、工业设备等领域。航嘉致力于提供高质量的电源产品,不断推出新的技术和创新的设计。他们的产品经过严格的质量控制和测试,确保能够稳定、高效地为设备提供电力。航嘉还注重环保和节能,努力减少对环境的影响。他们的电源供应器符合国际标准,并获得了多项认证和奖项。作为一家信誉良好的品牌

在Java中查找两个数组元素的最大和在Java中查找两个数组元素的最大和Sep 11, 2023 pm 02:13 PM

Twoelementsgivingthemaximumsuminanarraymeans,wehavetofindtwolargestarrayelementswhichwilleventuallygivethemaximumsumpossible.InthisarticlewewillseehowwecanfindthemaximumsumoftwoelementsinJava.ToshowyousomeinstancesInstance-1的中文翻译为:实例-1Supposewehaveth

即将上市的代币:$DOGEL、$BRAIN、$BTD、$PINU 和 $PIMEME即将上市的代币:$DOGEL、$BRAIN、$BTD、$PINU 和 $PIMEMEMar 03, 2025 pm 08:03 PM

加密货币市场持续发展,为投资者带来不断涌现的投资机会。新币上市总是备受关注,而2025年2月更是新币扎堆上市的月份,为投资者提供了丰富的选择。2025年2月值得关注的加密货币:不容错过的潜力项目本文将重点介绍五款即将在2月推出的加密货币项目,无论您是经验丰富的投资者还是新手,都能从中找到感兴趣的项目。它们分别是DogeLife($DOGEL)、DistriBrain($BRAIN)、比特币美元($BTD)、PiINU($PINU)和PIMEME($PIMEME)。请做好准备,将这些日

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download

Atom editor mac version download

The most popular open source editor