Best javascript editor debugger
Ajax website
Triggering a ScriptSometimes you won't want a script to run until the visitor does something to trigger it. For example, perhaps you want to run a script when the visitor mouses over a particular picture or link, or when a page is loaded. These actionsmousing over or loading a pageare called intrinsic events. There are currently 18 predefined intrinsic events. You can use them as triggers to determine when a script will run. To trigger a script:
Figure 19.8. A triggered script doesn't run until the visitor completes the required action. In this case, they have to click the link.
Figure 19.9. Once the visitor clicks the link, the script runs. In this case, an alert appears, giving the current date and time.
|
Best javascript editor debugger
Ajax website