/    Sign up×
Community /Pin to ProfileBookmark

Hello,

I have a script that when there is an error it calls a pop up window. I would like to have a windows alert insted. Here is the code if anybody can help.

function windowOpener() {
msgWindow=window.open(“”,”displayWindow”,”menubar=no,width=240,height=100,left=”+((screen.width-150)/2)+”,top=”+((screen.height-100)/2));
msgWindow.document.write(“<html><HEAD><TITLE>…………..Alert……………</TITLE></HEAD>”);
msgWindow.document.write(“<body’><table><tr><td><img src=’../phpuc_gfx/gif/curchat.gif’></td><td valign=’top’><font color=’red’ style=’font-size: 23px’><CENTER><B>New Support Request</B></CENTER></font></td></table></body></html>”);
msgWindow.focus();

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@ShrineDesignsJan 19.2005 — this is a PHP forum not JavaScript&lt;script language="JavaScript" type="text/javascript"&gt;
&lt;!--
function msg(text)
{
alert(text);
}
--&gt;
&lt;/script&gt;
×

Success!

Help @Bob_Norris spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...