SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2001
    Location
    UK
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi guys,

    I've been having a tinker with functions, and I was wondering:
    is it possible to alter the format of the alert box?

    For example, in HTML we can change font, colour etc, but can the onClick button and the actual alert box text be formatted too, or are they unchangeable?

    [not sure if this is the right forum...]

    Thanks.
    Laughter is good for you

  2. #2
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    They are unalterable as a security feature.
    My 2 Cents (or is that 2.2 Cents including GST?)

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2001
    Location
    UK
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, BC,

    thanks for the explanation.

    Laughter is good for you

  4. #4
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey,

    BC's right...in JavaScript, youcan't alter it. However, you could use VBScript (would be IE 4+) and change the format a little:

    http://www.wsabstract.com/javatutors/vbalert.shtml

    aDog

  5. #5
    SitePoint Enthusiast
    Join Date
    Apr 2001
    Location
    UK
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Arielladog

    thanks for the VB tip and link. Appreciated...something else to learn now, there's just not enough time!
    Laughter is good for you

  6. #6
    SitePoint Enthusiast
    Join Date
    Apr 2001
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    You don't need to learn VBScript

    If it only needs to work in IE then you can do more with dialogs. Check out http://www.msdn.com/ and look for "showModalDialog." I seem to remember reading of a few IE-only window methods that make dialog boxes.

    /johnny


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
  •