Setting font in confirm() dialog

O

OccasionalFlyer

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
 
D

Daz

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.
 
O

OccasionalFlyer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top