473,498 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Make Browser Dialogue Box Pop Up.

Hi,

I want to make a web page that causes the user's browser to pop a dialogue
box onto their screen with a message of whatever I want (such as 'Thanks
for visiting this site!'). The box should include a 'close' button to get
rid of it. Would the web page wait until the box had been closed before
loading or would it load in the background? What HTML tags would I need to
use? Or would I have to use a Perl CGI script to do this (to send a
special HTTP header, say)?

Yours,
Gary Hayward.

Jul 24 '05 #1
4 6127
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.

--
####################
## PH, London
####################
"Gazza" <ga***@192.168.1.1> wrote in message
news:IT****************@newsfe3-gui.ntli.net...
Hi,

I want to make a web page that causes the user's browser to pop a dialogue
box onto their screen with a message of whatever I want (such as 'Thanks
for visiting this site!'). The box should include a 'close' button to get
rid of it. Would the web page wait until the box had been closed before
loading or would it load in the background? What HTML tags would I need
to
use? Or would I have to use a Perl CGI script to do this (to send a
special HTTP header, say)?

Yours,
Gary Hayward.

Jul 24 '05 #2
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.

Jul 24 '05 #3
Previously in comp.infosystems.www.authoring.html, Gazza
<ga***@192.168.1.1> said:
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?


In Windows at least, I'm pretty sure that the text in an alert window is
not selectable. But obviously there's no way to stop them from writing
it on a piece of paper, or manually typing it into a file.

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 24 '05 #4
On Tue, 31 May 2005, Mark Parnell wrote:
In Windows at least, I'm pretty sure that the text in an alert
window is not selectable.
....which is maddening when one is trying to capture details of an
error report...
But obviously there's no way to stop them from writing
it on a piece of paper, or manually typing it into a file.


Or take a screen shot, and feed it to text recognition software.
Jul 24 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
4292
by: JimC | last post by:
Think I asked this once before. My apologies for asking twice. In a certain PHP document at my site, I have a link to a Word version of the same document. If the user downloads it, I want to...
1
1477
by: Sin Jeong-hun | last post by:
Hello. I created a very simple program which just pops up a MessageBox saying "Hello,world!". I compiled it and put it on my homepage and created a hyperlink to it. When I click the hyperlink to...
5
6851
by: kevin | last post by:
Hi, Any help with this would be really appreciated! I'm trying to download a file from a remote server. The access permissions is okay but the problem I'm facing is that the file is getting...
2
9845
by: Stu | last post by:
Hi, I have a Word document that is stored outside of the virtual server and I need to send it to the browser. I have tried using the code below (which seemed a little too simplistic!). The...
12
1531
by: Ger | last post by:
My dialogue form (sometimes partly, sometimes as a whole) remains visible during a fairly long processing job. The dialogue asks the user to enter some data for the job to follow, and after OK,...
44
2099
by: sasan3 | last post by:
Please read below for my collective response to recent posts on this topic. First a repeat of my suggestion: "Anytime you feel you are in a position to answer a question, but don't feel like...
4
7241
by: Gordon | last post by:
Just a quickie. Is there a way to cause a browser to open it's find... dialogue in response to an event, say a click on a button? The idea is that there's a list of addresses that a client has...
12
2161
by: Donn Ingle | last post by:
Hi, Okay, so I am in the mood to try this: Inform the user about what modules the app requires in a graphical dialogue that can vary depending on what the system already has installed. (It will...
0
1106
by: wademi | last post by:
Hi Guys. How do create a folder browser dialogue box in c#.net. I can drag the folder browser dialogue box in the window I am working in but I cant get it it to display and function on my form.
0
7126
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6891
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5465
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4916
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4595
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3087
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.