Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes HTML, CSS and JavaScript and the fly likes alert message in javaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "alert message in javaScript" Watch "alert message in javaScript" New topic

alert message in javaScript

aitex abex

Joined: Jun 02, 2006
Posts: 20
if(some condition){
alert("my message");

When we run alert message display as :

my message

But the problem is that in title bar i want my own.. somthing related to my project but by default we find " Microsoft internet explorer" so wahts solution.
Any body please.
Thanks in advance.
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

You cannot change the title of an alert box. Have a look at the "Remarks" section of MSDN Library reference - alert()
[ July 21, 2006: Message edited by: jaikiran pai ]

[My Blog] [JavaRanch Journal]
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199


Welcome to JavaRanch!

JavaScript and Java are two entirely different, unrelated languages. This site is primarily about Java, not JavaScript. We do have one JavaScript forum here. I will move this topic there for you; go over and look for it!

[Jess in Action][AskingGoodQuestions]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

You can use CSS and a bit of Javascript to make your own. I've rolled my own before and there are several available on the net both commercial and free.

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: alert message in javaScript
It's not a secret anymore!