Realization Aspects
JavaScript
JavaScript code describes
- time dependent processing
- the response to the event caused by users (button, pull-down menu, etc...)
- window features
- other specific processing that cannot be realised by HTML code
<SCRIPT>
<!--
function openNewWindow () {
if (mode == 1) window.open('howtouse.html', 'howtouse',
'scrollbars=yes,resizable=yes,width=400,height=500'); }
// -->
</SCRIPT>
<A HREF="javascript: openNewWindow();">How to use</A>
<INPUT TYPE="button" onClick="openNewWindow();">
Advantages of using JavaScript code
- commonly used; supported by both Netscape and Internet Explorer
- can be embedded within HTML code; easy to realize