From: optimistx on
It seems to me that pop up blockers do not prevent alert, confirm, and
prompt boxes appearing. Or do some prevent?

If there are significant number of (also alert-box-) blockers in use, how to
make an own box (e.g. a div), which does prevent the user proceeding
without clicking the button (or reacting with the keyboard, a modal dialog)?

(an idea: Is there a simple way to make the box (div?) the size of the whole
page, perhaps partially or wholly transparent except in the middle? Or can
the user proceed anyhow , whatever the programmer tries?)

Another question about alert: is there any way to modify how it looks, its
color e.g. ? (wrapper perhaps?)

From: David Mark on
On Nov 25, 5:27 am, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...(a)spamyourself.com> wrote:
> optimistx schreef:
>
> > It seems to me that pop up blockers do not prevent alert, confirm, and
> > prompt boxes appearing. Or do some prevent?
>
> As far as I know alert and confirm are never blocked.
> But there are many blockers out there, so maybe they exist.
>
>
>
> > If there are significant number of (also alert-box-) blockers in use,
>
> ???
>
> > how to make an own box  (e.g. a div), which does prevent the user
> > proceeding without clicking the button (or reacting with the keyboard, a
> > modal dialog)?
>
> Well, that is not a real modal box: it is just a div imitating an alert.
> Why do you want to change the normal userinterface?
> It will probably annoy a lot of users.
>
>
>
> > (an idea: Is there a simple way to make the box (div?) the size of the
> > whole page, perhaps partially or wholly transparent except in the
> > middle? Or can the user proceed anyhow , whatever the programmer tries?)
>
> Yes, that can be done.
> You can place a new div over all other material in the document. If you
> let this div catch all mouse events, the user cannot click away.
> But again: I, and probably a lot of other users, would consider this
> annoying in most situations.
>
> Why not use a normal alert or confirm? We all know them and all know how
> they are supposed to behave.
>
>
>
> > Another question about alert: is there any way to modify how it looks,
> > its color e.g. ? (wrapper perhaps?)
>
> Not that I know of.
>
> A general remark: Don't try to force the user to do things in ways they
> don't like. And don't try to change what is considered normal.
>
> An example: I like my hyperlink blue, and my visited hyperlinks purple.
> That is what I am used to after 13 years or so websurfing.
>
> But this can be changed via CSS.
> I dislike websites who do so.
> For example: Now I must remember that certain websites have red
> hyperlinks, blue headers (that are not hyperlinked) and visited
> hyperlinks stay red.

That's bad design because you can't rely on color _alone_ to indicate
a link (use an underline) and visited links should change color.

However, if a document changes the background color of the body, it
must change the color of hyperlinks to ensure proper contrast.

[...]

> Luckily stylesheets can be disabled, but these kind of sites have the
> habbit of failing completely without stylesheets.

That's also incompetence on the part of the designers. But you could
set !important rules in your user style sheet(s) to use blue and
purple (or whatever) for links. Just be sure to supply a suitable
background color too. And override the background image as well.
Unfortunately, most designers don't user the body as anything more
than a place to put lots of nested DIV's or tables, with lots of
convoluted style rules to match, so you will need multiple rules and
you won't be able to override the colors of all links and you will
still have contrast issues.
From: rf on

"optimistx" <optimistx(a)hotmail.com> wrote in message
news:4b0cfd7c$0$6257$9b536df3(a)news.fv.fi...
> It seems to me that pop up blockers do not prevent alert, confirm, and
> prompt boxes appearing. Or do some prevent?

Probably because these things are not popups. They are dialog boxes
initiated by the browser.

> If there are significant number of (also alert-box-) blockers in use, how
> to make an own box (e.g. a div), which does prevent the user proceeding
> without clicking the button (or reacting with the keyboard, a modal
> dialog)?

What?

> (an idea: Is there a simple way to make the box (div?) the size of the
> whole page, perhaps partially or wholly transparent except in the middle?
> Or can the user proceed anyhow , whatever the programmer tries?)

What are you talking about? Popups, div's covering the canvas or browser
initated dialog boxes?

> Another question about alert: is there any way to modify how it looks, its
> color e.g. ? (wrapper perhaps?)

No. It's a dialog initiated by the browser.


From: optimistx on
rf wrote:
> "optimistx" <optimistx(a)hotmail.com> wrote in message
> news:4b0cfd7c$0$6257$9b536df3(a)news.fv.fi...

>> If there are significant number of (also alert-box-) blockers in
>> use, how to make an own box (e.g. a div), which does prevent the
>> user proceeding without clicking the button (or reacting with the
>> keyboard, a modal dialog)?
>
> What?
>
>> (an idea: Is there a simple way to make the box (div?) the size of
>> the whole page, perhaps partially or wholly transparent except in
>> the middle? Or can the user proceed anyhow , whatever the programmer
>> tries?)
>
> What are you talking about? Popups, div's covering the canvas or
> browser initated dialog boxes?

What? :) More simply: If alert-boxes are blocked, what to do?

But they obviously are not blocked. My question aroused, when
in Chrome-browser I got a dialog box asking, whether I would
allow such boxes to appear in the future. I allowed, and now I do not
remember the situation accurately. I was pretty sure that that
was an alertbox from my program, but now I cannot reproduce
the situation easily.

If alertboxes cannot be blocked, my second question is not
so important. I thought of the possibility to add images to
the alertbox , explaining things with them easier than with
many words like here.

I appreciate Erwin M�llers views also, and the kind attitude.

Unnecessary frills ARE unnecessary :).

From: Tim Slattery on
"optimistx" <optimistx(a)hotmail.com> wrote:

>It seems to me that pop up blockers do not prevent alert, confirm, and
>prompt boxes appearing. Or do some prevent?

They don't prevent those things. They do, in general, prevent
javascript from opening a new browser window.

Apparently Flash, and maybe other things, can get around them.

--
Tim Slattery
Slattery_T(a)bls.gov
http://members.cox.net/slatteryt