Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I add a don't show this again check box to an alert? 1

Status
Not open for further replies.

Mthales

Technical User
Joined
Feb 27, 2004
Messages
1,181
Location
GB
On lots of web pages and applications there is the very nice feature of putting a "don't show this message again" check box on messages that pop up several times.

I have found that the alert is a very easy way to get the messages but does anyone know if there is an easy way to add a "don't show this again" check box?

M

--------------------------------------
My doctor says that I have a malformed public-duty gland and that I am therefore excused from saving universes.
 
it is impossible to alter the look and feel of standard javascript alerts, confirms, and prompts. you will need to custom-create either a css-styled element or a popup window to do what you're requesting.

you can then store a cookie on the user's machine, marking that they've seen the message and don't want to see it again.



*cLFlaVA
----------------------------
[tt]somebody set up us the bomb![bomb][/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Ah right thanks for that - I'll not waist time trying to do the impossible - I'll investigate popup windows and css-styled elements instead.

M

--------------------------------------
My doctor says that I have a malformed public-duty gland and that I am therefore excused from saving universes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top