showmodaldialog function

I have an online application form that uses pop up windows to assist with validation checks on mandatory fields.  This is causing numerous problems with windows xp sp2 with the new pop up blocking facility in internet explorer.  I would like to resolve this problem by changing the javascript from to create.popup. Is there an alternative to showModalDialog function ?

function MessageBox(val)
var ver = version();

if (document .all && showmodalDialog && ver>=Version && !isIE4)
var dir = ver > 12.1 ? "onlinema" : "online";
var url = getbase()+"../../html/"+dir+"/alert.htm";
var attrs = getattrs(val);

prompt = val;
Who is Participating?
xp and sp2 =  forget any popup forever

except user adds your site to "allowed"
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.