2

Possible Duplicate:
How to edit a JavaScript alert box title?

When I run my javascript program,I am getting alert box that has title(page at local host says that).I want to remove that with some good title.Does it there any way to do that?

Community
  • 1
  • 1
Jui Test
  • 2,399
  • 14
  • 49
  • 76

5 Answers5

0

You can't do it with standard alert.

x2.
  • 9,554
  • 6
  • 41
  • 62
0

Instead of using alert(), try using a lightbox instead. If you use jQuery, check out jqModal. If you use Prototype, check out ModalBox.

James
  • 697
  • 5
  • 23
0

You should use JqueryUI for custom dialogboxes. That way you can specify title, text, buttons, and even style everything to match your website.

Here's the explanation of how to do it: http://jqueryui.com/demos/dialog/#modal-confirmation

kristof_w
  • 302
  • 2
  • 11
0

Not possible with javascript alert. Try with custom jquery-ui dialog; here is the link

Prashanth Thurairatnam
  • 4,353
  • 2
  • 14
  • 17
0

There is no way to change alert box title. You should try custom message box, implemented in pure HTML, like this one

Rusted
  • 579
  • 3
  • 9