
Adding Functionality to Invoke JavaGrins
-
The JavaScript function to invoke JavaGrins is "makeNewWindow()
& is defined in an included file described in the next slide. This
function can be invoked from any web element such as a link by using the
syntax:
<A HREF="javascript:void(0)" onClick="makeNewWindow('smilesFormElementName')">This
link invokes a new JavaGrins</A>
-
In our CLOGP example,
the link that invokes the function has the HTML source:
Invoke <A HREF="javascript:void(0)" onClick="makeNewWindow('smilesForm.smiles')">new
JavaGrins</A>