This JavaScript example represents code used to open a new browser window to display an explanation of an item within a main code illustration on this site.
WinW = 620 |
  | |||||||
WinH = screen.height/3*2 |
||||||||
LP = screen.width-WinW |
||||||||
LP = LP/2 |
||||||||
function goExplain(p1) { |
||||||||
|   | catWindow = window.open(p1+'.html','Info','width='+WinW+',height='+WinH+',left='+LP+',top=0') |
|||||||
|   | } |
  |   |   |   |   |   |   |
HTML Pages which invoke this function have two lines in their <HEAD> section. i.e.
<SCRIPT LANGUAGE=JAVASCRIPT SRC="explain.js">
</SCRIPT>
At the point of invocation their will be an address link <A> in the form:
<A HREF="javascript:void(0)" onClick="goExplain('jswino4')">
Copyright © KMS-IT Limited 2002