473,624 Members | 2,135 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 6152
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******** ********@newsfe 3-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.infosystem s.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
4302
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 log that s/he has done this. Data logging isn't the issue. Calling a PHP script is. So what I have is something like: <a href=http://my-web-site.com/documents/mydoc.doc>Click here</a> to download a Word version of this document.
1
1488
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 the .exe file, unlike the normal .exe files, it is just executed without popping up a dialogue like "". I wonder is this only because I created the application and somehow ..NET Framework recognized that I created it and ran it? Or any person...
5
6870
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 downloaded before the Save As dialogue appears. As we will be downloading some large files, it's unpractical to have this. So far the code I have to download the file is
2
9852
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 browser pops open a dialogue asking to save a word doc but the doc is empty. Dim f As File f.Open("c:\test.doc", FileMode.Open)
12
1549
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, should disappear and the processing job (Sub CreateHTML()) starts, while showing a progress bar in the main form. The problem is that the dialogue form stays visible and does not close during execution of the job. It closes after the job is...
44
2134
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 doing so because you don't like the way it is asked. either ignore it, or put the poster on your ignore filter!, Spare everyone the
4
7254
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 used for delivery in the past, but in some cases this list can be rather long, and a lot of clients don't know about the browser find in page dialogue. I'd imagine getting the browser to generate it's own ctrl-f event would be impossible, but...
12
2174
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 fail-to output on cli) I am running Kubuntu and I seem to have 'kdialog' installed by default (not sure if it came as stock.) What other 'stock' systems are there out there in the wild? Ubuntu? Suse? Fedora? Others?
0
1111
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
8234
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8172
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8474
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7158
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6110
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5563
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2605
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 we have to send another system
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.