/    Sign up×
Community /Pin to ProfileBookmark

hi,
i have written a code to open a pop-up window in JSP.
it is working fine except that inspite of writting no for menubar,toolbar,scrollbar and specifying the size of the window, the appearance is not so.

Below is the code i have used. i have taken care of not leaving any whitespaces but still it is not working.

function popit()
{

window.open(”,’_popups’,’toolbar=no,status=no,location=no,menubar=no,resizable=no,scrollbar=no,top=200,left=200,screenX=200,screenY=200,height=150,width=30′)

}

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@NedalsApr 13.2004 — It works as written, but do you have everthing on one line? If not you will get a script error.

You don't need all those no's. The rule is: if ANY option is specified, then all are false. If none are specified then ALL are true.

So you can write your popit as..

window.open('', '_pop', 'top=200,left=200,height=150,width=30');

I have no idea what screenX and Y are doing!
Copy linkTweet thisAlerts:
@shivanginiauthorApr 13.2004 — thanks,

i tried this but still it is not working
Copy linkTweet thisAlerts:
@KorApr 13.2004 — window. open('[color=red]?[/color]'......

where is your popup's url?
Copy linkTweet thisAlerts:
@shanuraguApr 13.2004 — Try this, but see to it that u maintain the same order as mentioned below.

window.open("xx.html", "popupwindow","left=200,top=200,width=30px,height=150px,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no");
×

Success!

Help @shivangini 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.11,
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,
)...