/    Sign up×
Community /Pin to ProfileBookmark

window.open attribute problem

I’m having trouble getting the opened window to recognize the resizable attribute. The other attributes all behave correctly in Mozilla 5.0 and IE 6. I’ve tried setting the attributes *=1″ and *=yes* and it doesn’t help. Anybody else ever run into this?

In the <head>:

<script language=”javascript1.2″ type=”text/javascript”>
var thiswin = self.name;
var str = “left=0,screenX=0,top=0,screenY=0”;
if (window.screen) {
var ah = screen.availHeight;
var aw = screen.availWidth;
str += “,height=” + ah;
str += “,innerHeight=” + ah;
str += “,width=” + aw;
str += “,innerWidth=” + aw;
}
str += “,resizeable,menubar,scrollbars,status'”;

function launchFull(url,name) {
return window.open(url, name, str);
}
</script>

and the call is:
<a class=”Blk” onclick=”launchFull(‘daytimer.php?auth=<?php echo $auth; ?>’,’dt’)”> ~link text~ </a>

thanks in advance…

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@Mr_JJan 13.2006 — Your spelling of [B]resizable[/B] is wrong
Copy linkTweet thisAlerts:
@Ed_DauthorJan 13.2006 — Mr J - you, sir, are a [B]prince[/B]! I won't even say how many hours I've been staring at this. Many thanks - Ed
Copy linkTweet thisAlerts:
@Mr_JJan 14.2006 — Glad to help, if you'd like a bit more information on opening windows take a look here.

www.huntingground.freeserve.co.uk/webplus/window/newwin.htm
Copy linkTweet thisAlerts:
@Ed_DauthorJan 14.2006 — Nicely done! I wish I had found it when I was googling for good examples. Thanks again, Ed.
×

Success!

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

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

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