/    Sign up×
Community /Pin to ProfileBookmark

neq window-maximized?

ok so i have this code

[code]<script language=”javascript” type=”text/javascript”>
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos==”random”){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos==”center”){LeftPosition=(screen.width)?(screen.width-w)/2/100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!=”center” && pos!=”random”) || pos==null){LeftPosition=0;TopPosition=20}
settings=’width=’+w+’,height=’+h+’,top=’+TopPosition+’,left=’+LeftPosition+’,scrollbars=’+scroll+’,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no’;
win=window.open(mypage,myname,settings);}
// –>
</script>[/code]

and links

[code]<area shape=”rect” coords=”679,492,715,517″ href=”http://www.mywebsite.com/english” onclick=”NewWindow(this.href,’newwindow’,’450′,’750′,’yes’,’center’);return false” onfocus=”this.blur()”>[/code]

but my question is-what sort of values should i put so the new window would open maximized? tnx.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@t3h_nomadauthorApr 10.2008 — nope that doesnt work at all ?

edit:

ok ok ok ok

so i figured its something far more simple:

&lt;script language="JavaScript" type="text/JavaScript"&gt;
&lt;!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//--&gt;
&lt;/script&gt;




and the link
&lt;a href="http://www.mywebsite.com/english" href="javascript:;" onClick="MM_openBrWindow('http://www.mywebsite.com/english/','SHOW','scrollbars=no,fullscreen=yes')"&gt;link&lt;/a&gt;

works fine except.....

well the new window pops up and starts loading. problem is the page starts loading in both old and new window. ideas how to fix that?
Copy linkTweet thisAlerts:
@FangApr 10.2008 — Same link as before, note the return false
×

Success!

Help @t3h_nomad 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 5.15,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...