Re: Replace JS button with text

by "Paul Wilson" <webgooru(at)gte.net>

 Date:  Wed, 20 Jun 2001 09:10:25 -0400
 To:  "David Andrew" <davida51(at)swbell.net>,
"HWG Languages" <hwg-languages(at)hwg.org>
 References:  swbell
  todo: View Thread, Original
> I want to replace the button with the text "What is a Moratorium?"

<A HREF="yourfile.htm" ONCLICK="myWindow=window.open
'yourfile.htm','MyWindow','toolbar=no,width=550,height=350,scrollbars=yes,le
ft=200,top=0');return false">What is a Moratorium</A>

This is the best method I have found.  Replace yourfile.htm with the file
you want to see in the window.  There are two occurrences of the filename,
the second is the JS occurrence, the other ( the 1st ) comes in play if JS
was turned off - it still will display the file but not as a window.  The
other elements are for positioning and size.  A little experimentation will
show you what they do.

You can also substitute a small graphic rather than the text "What is a
Moratorium" if you want.

Paul Wilson
webgooru(at)gte.net

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA