9. Interaction : JAVASCRIPT

Interaction

Interaction

Alert() - This technique shows an alarm box with a predefined message and an OK button. It is generally expected used to ensure data comes through to the client. The alarm box removes the concentration from the current window and powers the program and powers program to peruse the message. Try not to abuse this strategy, as it keeps the client from getting to different pieces of the page until the case is shut. 


Prompt() - This technique shows an exchange box that prompts the guest for input. A brief box is frequently utilized assuming you need to include a worth before entering a page. At the point when a brief box springs up, the client should click all things considered "All right" or "Drop" to continue in the wake of entering information respect. The brief() strategy returns the info regard if the client clicks "All right". On the off chance that the client clicks "drop" the strategy brings invalid back. 


Confirm() - This technique shows an exchange box with a chosen message, alongside an OK and a Cancel button. A confirm box is frequently utilized assuming you need the client to check or acknowledge something. The confirm box removes the concentration from the current window and powers the program to read the message. The confirm() strategy returns valid if the client clicked "All right", and bogus something else. This technique is possibly utilized assuming we need to double check any task performed by the client.

Post a Comment

0 Comments