SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist priti's Avatar
    Join Date
    Aug 2006
    Location
    India
    Posts
    488
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to change title of alert window

    Hello everyone,

    Can someone explain me how to change the title of alert window in javascript so something equivalent.

    Regards,

  2. #2
    SitePoint Wizard
    Join Date
    Dec 2003
    Location
    USA
    Posts
    2,582
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)
    As far as I know, there is no way to change the title of that alert box.

    Your closest bet would be to use Javascript to open a small new window with a button that performs what you want it to perform. You could style it like an alert box if you wanted.

    Note though that most pop-up blockers will block this depending how you implement it, and some will block it regardless.

  3. #3
    Google Engineer polvero's Avatar
    Join Date
    Oct 2003
    Location
    Mountain View
    Posts
    567
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    changing the title in an alert would possibly pose as a security risk. that's why it's not allowed.
    Try something like Yahoo's Dialog component.
    http://developer.yahoo.com/yui/examp...uickstart.html

  4. #4
    SitePoint Guru
    Join Date
    Nov 2005
    Location
    Midwest
    Posts
    777
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Instead of opening a new window, use a div. A div can be made to look very nice and are not blocked by pop-up blockers.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •