Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: closing pop up windows.
From: Jason Nugent
Date: Mon, 13 Jul 1998 00:32:47 +0100

On Sun, 12 Jul 1998, naoki mitsuse wrote:
> Also, can anyone tell me how to create a button to close the pop-up?
> Would this be done using Java?

Hey Naoki,

To create a button that will close the window in regular HTML,
just create your image graphic that you want to use and surround it with
the code that closes the window:

<A HREF="#" onClick='self.close()'><IMG SRC="close.gif"
HEIGHT="100" WIDTH="100"></A>

or, if you want to use a regular form button (like a submit
button, for instance), try:

<INPUT TYPE="button" VALUE="Close Window" onClick='self.close()'>

Just want to point out a small misnomer here... what you are
discussing is not Java. It's JavaScript. Java is a full-featured
programming language like C++ that became popular on the 'net because of
applets, which are small Java programs which run in a browser.
JavaScript is a client-side scripting language that Flash can use to
perform window opening/closing and other neat little things. It's also
the prime component (along with VBScript) of dynamic HTML.

Jason


---------------------
Jason Nugent, BSc(Hons)
ap958atchebucto [dot] ns [dot] ca "This is who we are."
jasonatirt [dot] org
Certified Webmaster

Visit IRT.org - Internet Related Technologies - http://www.irt.org
Articles on all aspects of internet development, including -
CGI/Perl, CSS, JavaScript, dHTML, Java, XML, HTML

********************************************************************
The Best Place for Sport on the net! - Sportscience www.sportsci.org
********************************************************************


------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  closing pop up windows., naoki mitsuse

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]