Access a specified node:
GetElementsByName ():
<Html> <pead> <title> DOM technology </title> </pead> <body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
<Html> <pead> <title> DOM technology </title> </pead> <body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
GetElementById ():
<Html> <pead> <title> </pead> <body onload = "getValue ()"> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
<Html> <pead> <title> </pead> <body onload = "getValue ()"> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
CreateElement ():
<Html> <pead> <title> Create a node </title> </pead> <body onload = "createM ()"> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
<Html> <pead> <title> Create a node </title> </pead> <body onload = "createM ()"> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
RemoveChild ():
<Html> <pead> <title> delete a node </title> </pead> <body onload = "removeM ()"> <p> hello! </P> <p> hello world! </P> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
<Html> <pead> <title> delete a node </title> </pead> <body onload = "removeM ()"> <p> hello! </P> <p> hello world! </P> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]