JavaScript Advanced Tutorials (third lesson) 1th/2 Page _ Basics

Source: Internet
Author: User

Timing of events and browser recognition

As we have more and more javascript in our hands, we can produce more and more complex applications. In the last course we learned how to use javascripts to write cookies. Today we will learn how to add timer functions. The ability to schedule time is very useful in browsers, and it can play a greater role in Dynamic HTML applications.

You may notice that Dynamic HTML can move different content across the page. Moving an object around the screen in JavaScript requires a loop (loop), which moves the object over time with a looping function. But how do you tell JavaScript to move an object a little bit every second or every 10 seconds?

However, there is a big difference in the ability to move an object in different browsers. To be able to apply dynamic HTML to different browsers, you need to do something special. So after the event is timed I will explain how to identify which browser the user is using (you can use different program code for different browsers).

Learn the timing of events first. Click the button below and a prompt will pop up after 3 seconds.

Current 1/2 page 12 Next read the full text

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.