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