The relationship between global variables and local variables and their introduced locations

Source: Internet
Author: User

<HTML>    <Head>        <title>Click event Example</title> <!--not one outside of one can -   </Head><!--no, not inside . -     <Body>        <!--three outside the room can not -           <inputtype= "button"value= "Change Color"onclick= "Tell ()" />           <!--No, four is not allowed inside . -         <DivID= "Change">1233</Div>        <!--Five outside the room can not -        <styletype= "Text/css">Div{width:100px;Height:100px;Background-color:Red;        }        </style>        <!--not six outside . -    </Body>      <!--Both inside and outside the seven, plus no window. -    <Scripttype= "Text/javascript"src= "Wode.js"></Script>       </HTML>
            function Tell () {                var = document.getElementById (' Change '                ); = "Black";            }             // JS of demo1-3-9.html

Recommended introduction position for body after end

The relationship between global variables and local variables and their introduced locations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.