window的属性和方法如下 leftSlide这个对象是自定义的对象
clearInterval是清除一个重复执行的对象
Image
Option
clientInformation
clipboardData
closed
defaultStatus
document
event
external
frameElement
frames
history
length
location
name
navigator
offscreenBuffering
onafterprint
onbeforeprint
onbeforeunload
onblur
onerror
onfocus
onhelp
onload
onresize
onscroll
onunload
opener
parent
screen
screenLeft
screenTop
self
status
top
window
clearInterval是清除一个重复执行的对象
Image
Option
clientInformation
clipboardData
closed
defaultStatus
document
event
external
frameElement
frames
history
length
location
name
navigator
offscreenBuffering
onafterprint
onbeforeprint
onbeforeunload
onblur
onerror
onfocus
onhelp
onload
onresize
onscroll
onunload
opener
parent
screen
screenLeft
screenTop
self
status
top
window
alert(window.mm);
a无论在哪里声明都属于global
var count=1;
var leftSlide; function f1()
{
document.all.div1.innerText=document.all.div1.innerText+count;
count++;
if ((count>100)&&(window.leftSlide))
window.clearInterval(leftSlide);
} leftSlide=window.setInterval("f1()",100);//不停的执行</script>
<div id="div1"></div>