Re-use of the image can be used
var A,b;with (document) {A = getElementById (' AID ') b = getElementById (' BID ') }
About node Access:
ParentNode parent Node
PreviousSibling the first sibling node of the current node
NextSibling the next sibling node of the current node
ChildNodes all child nodes of the current node
FirstChild the first child node of the current node
LastChild the last child node of the current node
getElementsByTagName (tagName) All child nodes of the current node with the specified label name
In Chrome and Firefox, the change line is considered the first child node
The use of nodes in JavaScript functions is called:
<script> function Showwin (tar) {var a,b,c; With (document) {A = getElementById (' AID '); b = getElementById (' BID '); c = getElementById (' CID ');}} </script>
Call a function of script that is invoked through an onclick event or other triggering event
Called by the button's onclick event.
<input type= "button" onclick= "Showwin (the node for CRR. Node)" >
} </script>
JavaScript about nodes