On Apr 16, 8:49 am, "Daz" <cutenfu...@gmail.com> wrote:
> On Apr 16, 4:36 pm, "OccasionalFlyer" <klit...@apu.edu> wrote:
>
> > I have become owner of some Javascript code that displays a message
> > through the confirm() function. I have a uwser reuqest to make the
> > font size of this message larger. Can this be done? I don't see
> > readily a way to modify the font or other properties of the popup
> > created by confirm(). Thanks.
>
> > Ken
>
> Hi Ken.
>
> To my knowledge, this can't be done. The only thing you can do is make
> a custom dialog yourself, out of divs, tables or whatever other
> elements you have lying around. I think that IE does have some level
> of support for it, using .NET, but I am uncertain.
>
> I recommend you google the term "javascript lightbox", both with and
> without quotes. You should find the results useful.
>
> All the best.
>
> Daz.
Thanks. I want to try a simpler idea but I'm wondering if I'm doing
something wrong here:
var msg = new String(
'WARNING: Quiting now will cancel all changes up to this point, ' +
'leaving your schedule as it was when you began this session. ' +
'Are you sure you want to quit?'
);
"msg".blink();
"msg".fontsize(7);
if (confirm(msg))
{
document.location.href = '<jsp:getProperty name="req"
property="contextPath"/>/regcontrol?command=SessionDone';
}
else
{
return false;
}
setting the properties of the string object seems to have no effect on
the confirm box. Am I doing this wrong to set the string object's
attributes? THank.s
Ken
|