Philip Herlihy wrote:
The usual way of doing this is to use JavaScript - see the alert()
function. Some people have JavaScript disabled, a small but still
significant
minority. See:
http://www.w3schools.com/js/default.asp for an intro to JavaScript.
By the way, needless popups are one of the most annoying things on the
web, and may discourage return visits.
Hi,
Thanks.
You are right about pop-ups having the potential of being annoying and I
assure you that I don't actually intend to use a pop-up in the trivial way
described; I just gave a simple example of the type of thing I wish to do
without going into unnecessary detail. Here, though, is what I do intend
to do.
On my computer, I have created and run as a daemon a BASH script that checks
my computer's Internet IP address and, when it changes, creates an HTML
page including it that it then uploads to one of my Internet-hosted web
sites. The page on the web site is password protected thanks to a Perl CGI
script that I wrote. Everything works fine, but then decided I wanted the
IP address not in the web page (which could be saved by the user and could,
therefore, potentially be accessed by someone able to access the computer
that saved file was on but unauthorised to do so), but popped up in a
browser dialogue box of the user. I guess there is no way of stopping the
user from dragging their mouse pointer over the IP address in the dialogue
box with the left mouse button pressed down and copying and pasting it in a
file, though, is there?
Yours,
Gary Hayward.