posts - 495,  comments - 11,  trackbacks - 0
          <html>
          ????<head>
          ??????<title>Examples of the var Keyword</title>
          ????<script language="JavaScript">
          ????<!--
          ????var myVar = "Global";

          ????function myFunc(){
          ??????var myVar = "Function";
          ??????return myVar;
          ????}

          ????function mySecFunc(){
          ??????var myVar = "Second Function";
          ??????document.write("<br>The value of myVar when called by mySecFunc() is: ");
          ??????document.write(myVar);
          ????}
          ????-->
          ????</script>
          ????</head>
          ????<body>
          ????<script language="JavaScript">
          ????<!--
          ????document.write("The value of myVar when called is: " + myVar)

          ????document.write("<br>The value of myVar when called by myFunc() is: ");

          ????document.write(myFunc());

          ????mySecFunc();

          ????-->
          ????</script>
          ????</body>
          ????</html>

          posted on 2007-09-25 11:32 jadmin 閱讀(49) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 平安县| 措美县| 新源县| 昌黎县| 广汉市| 和田县| 邛崃市| 泽州县| 凯里市| 谢通门县| 长宁区| 和顺县| 太白县| 新民市| 黄冈市| 长丰县| 百色市| 东乌| 同仁县| 台中县| 通化市| 樟树市| 通辽市| 镇赉县| 长子县| 山阳县| 邵阳市| 松原市| 邳州市| 汉源县| 宁化县| 龙江县| 雷山县| 五常市| 和硕县| 仙桃市| 仁怀市| 大荔县| 米林县| 芷江| 霸州市|