RE: Javascript message box
by "Krimm, Nik" <nik.krimm(at)marchFIRST.com>
|
| Date: |
Tue, 1 Aug 2000 12:03:15 -0500 |
| To: |
"'Derek Lavine'" <derek(at)realware.com.au>, hwg-languages(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
I recently read that it is a security feature of Javascript that you
*cannot* you cannot change the
title of alert or confirm dialogs in Javascript. The argument is that a
malicious programmer can't
trick you with a dialog box that looks like its for a windows program (maybe
I'm groggy or not evil enough,
but I can't think of what damage you could do this way...)
One good cross-browser solution is to open up a new window the size and
position of a dialog
you'd like to show. It won't really look exactly like a native dialog box,
but you can control
all of the formatting pretty precisely.
The following link has a short article on how to work with multiple windows
and their parameters that might help.
http://www.webdevelopersjournal.com/articles/dynamic_doc_windows.html
-----Original Message-----
From: Derek Lavine [mailto:derek(at)realware.com.au]
Sent: Tuesday, August 01, 2000 12:58 AM
To: hwg-languages(at)hwg.org
Subject: Javascript message box
Hi all,
Is there another way to display a message box other than using the alert()
function as I would like to be able to change the title of the box that
comes up and perhaps even have multiple lines in the message
Thanks
Derek
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.