/    Sign up×
Community /Pin to ProfileBookmark

Pop Up Window – Netscape problem

Hello!
I have problem with a pop Up Windows.
IE, no problem, everything working correctly.
Netscape – new window is expanded into a screen width and it is opened under the „parent window“.
Can you please advice me, how to change, variegate or rewrite the code to work correctly … to focus the window into front and get it into a required size? Maybe, there are some parameters needed to change.
Thank you.
DK


******************

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
if(popUpWin)
{
if(!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr, ‘popUpWin’, ‘toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width=’+width+’,height=’+height+’,left=’+left+’,top=’+top+’,screenX=’+left+’,screenY=’+top+”);
}


*****************

<a href=”javascript:;” onClick=”popUpWindow(‘imagepages/kal_da3.htm’,”,’width=550,height=404,left=350,top=80′)”> <img src=”images/da3_n.jpg” width=”188″ height=”138″ border=”0″></a>

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@javaNoobieSep 15.2004 — var popUpWin=[color=red]null[/color];
function popUpWindow(URLStr, left, top, width, height)
{
if(popUpWin != null &amp;&amp; !popUpWin.closed)
{
popUpWin.close();
}
popUpWin = window.open(URLStr,'popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top);
[color=red]popUpWin.focus()[/color]
}
/***************/
&lt;a href="[color=red]#[/color]" onClick="popUpWindow('imagepages/kal_da3.htm',[color=red]'350','80','550','404'[/color]);[color=red]return false[/color]"&gt;
Copy linkTweet thisAlerts:
@donna_karanauthorSep 15.2004 — I used your advices ...

The final version of the code, tested on IE, Netscape, Mozilla Firefox - WORKING! :-)

var popUpWin=null;

function popUpWindow(URLStr, width, height, left, top)

{

if(popUpWin)

{

if(!popUpWin.closed) popUpWin.close();

}

popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top+'');

popUpWin.focus()

}


****************

<a href="javascript:;" onClick="popUpWindow('imagepages/kal_dw50.htm',550,400,350,80)"><img src="images/dw50_n.jpg" width="188" height="133" border="0"></a>
×

Success!

Help @donna_karan 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.17,
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,
)...