Originally Posted by DMN
How would I call Function2() from a web page?
You call (execute) the function when an event happens. For example:
<input type = "text" id = "mytext" onblur = "function1()">
<input type = "button" value = "Click Me" onclick = "function2()">
<img src="logo1.jpg" onclick="function3()">
<select id = "myselect" onchange = "function4()">
<img src="smiley.gif" alt="Smiley" onmouseover="function5(this)" >
Is this what you mean?
I like fish and chips, but you can't get that there [Paris] - all you can get are snails' legs. - Commentator Talksport
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Last edited by Philip M; 03-16-2013 at 10:43 AM..