Common methods in the Window object

Source: Internet
Author: User

<body>
<!--
Common methods in the Window object
-
<script type= "Text/javascript" >

Var Timeid;
Function Windowmethoddemo () {
//var b = Confirm ("Are you sure you want to click?") ");
//alert ("b=" +b);
//settimeout ("alert (' Time Run ')", 40);
Timeid=setinterval ("alert (' Time Run ')", 400);
}

Function StopTime () {
Clearinterval (Timeid);
}

Function Windowmove () {
//moveby (10,10);
Move Window
//moveto (40,40);

//Vibrate window code
for (Var x=0;x<700;x++) {
Moveby (20,0);
Moveby (0,20);
Moveby ( -20,0);
Moveby (0,-20);
}
}
//Open window
Function Windowopen () {
Open ("http://www.baidu.com", "_blank", "height=200,width=400, Status=yes,toolbar=yes,menubar=yes,location=yes ");
}
</script>
<input type= "button" value= "Demo Window object Method" onclick= "Windowmethoddemo ()"/>
<input type= "button" value= "Stop" onclick= "StopTime ()"/>
<input type= "button" value= "Move Window" onclick= " Windowmove () "/>
<input type=" button "value=" open Window onclick= "Windowopen ()"/>

</body>

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.