/    Sign up×
Community /Pin to ProfileBookmark

Sizing pop up window help

Hello all….I know this seems simple but I am having difficulty with this. I have an input button that I need to pop up a page which houses an audio player BUT I need the popup page to be 278×243….here is the code which works, but when I add dimensions to it it no longer functions. Could someoen please help me alter this code to force the pop up page to be wideth 278, height 243???

<input type=button value=”Listen” onClick=”javascript:popUp(‘http://www.mysite/myPlayer.htm‘)” style=”color: #FFFFFF; background-color: #000000″>

Thank you very much!!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@konithomimoOct 15.2006 — add this function between your script tags (possibly replacing the one that you already have . . .s eeing how your button calls a function name popUp() . . .)

&lt;script type="text/javascript"&gt;
function popUp(loc) {
window.open(loc,'', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=278,height=243');
}
&lt;/script&gt;
×

Success!

Help @webnewbieugh 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.16,
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,
)...