Adding Functionality to Invoke JavaGrins
-
If we name the JavaScript function to invoke JavaGrins as
"invokeJavaGrins()", we may invoke this function from any web element such
as a link by using the syntax:
<A HREF="javascript:void(0)" onClick="invokeJavaGrins()">This
link invokes a new JavaGrins</A>
-
In our CLOGP example,
the analogous function is "makeNewWindow()" and the link that invokes the
function has the HTML source:
Invoke <A HREF="javascript:void(0)" onClick="makeNewWindow()">new
JavaGrins</A>