ISMA309


Recent Posts

Recent Comments

    Archives

    Categories

    Meta

    Latest Articles

    Event handlers
    An event handler can be considered a trigger that executes code when something happens, in the ‘event’ of a click or move your mouse over a link, submit a form etc. onClick onClick handlers execute something only when users click on buttons, links, etc. Let’s see an example: <html> <script> function specialsauce() { alert("Thank you!") […] Read more – ‘Event handlers’.
    Functions
    Prose is structured in sentences and paragraphs in the english language. In Javascript we structure our code in lines of instruction and functions. To create javascript that is easy to understand and maintain the code must be broken into smaller modules. These modules or packages of instructions are called functions and can be called upon […] Read more – ‘Functions’.
    Variables and Conditions
    Let’s first look at an example: <script type="text/javascript"> var x=window.confirm("Are you sure you want to quit") if (x) window.alert("Thank you.") else window.alert("Good choice.") </script> <script type="text/javascript"> var x=window.confirm("Are you sure you want to quit") if (x) window.alert("Thank you.") else window.alert("Good choice.") </script> There are several concepts that we should know. First of all, var x= […] Read more – ‘Variables and Conditions’.

    All Articles