[thelist] Basic JavaScript Help?

Richard H. Morris richard.morris at web-designers.co.uk
Wed Sep 26 06:11:37 CDT 2001


My brain is definitely not in gear this morning (nothing to do with this
migraine, of course...): I often use a bit of script to open a small pop-up
on click as follows:

<head>
<stuff>
<script language="JavaScript">
<!--
function openWin1() {
  n =
open('help.htm','_blank','width=450,height=450,menubar=no,scrollable=yes,res
izable=yes');
}
// -->
</script>
</head>

and then

<body>
A brief <a href="javascript:openWin1()" onMouseOver="window.status='An
explanation of the terms'; return true">explanation</a>
</body>

On the page I'm working on now, I will probably need a whole series of these
pop-ups but I'm failing to work out how to modify the script and link to
open up help2.htm, help3.htm, etc.  The only way I can see at the moment is
to have separate functions (function openWin2(2), function openWin2()) etc.

Any pointers very gratefully received.

_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
Richard. H. Morris, Web Designers Limited
~~ http://www.web-designers.co.uk ~~
"I'd rather have a full bottle in front of me
          than a full frontal lobotomy"
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/






More information about the thelist mailing list