/    Sign up×
Community /Pin to ProfileBookmark

Hey,

I’m new to these forums, but they look a pretty useful place to hang around. ?

Anyway, this is probably a really easy question, but I’ve searched around and can’t find the answer…

Is there anyway to remove the bar at top of the window (the part with the maximize, minimize and close buttons) when creating a popup window? I assume it will just be a property that is used when creating the pop up, but i can’t find out what it is. :rolleyes:

Thanks in advance.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@fredmvJan 09.2004 — Welcome to the forums.

Nope — that part of the browser chrome can't be removed for security reasons (you could, for example, trick the user into the window being an operating system dialog and have them enter sensitive information such as a password). It could, however, be removed in some versions of IE using the chromeless bug (which has been fixed I believe), but it simply isn't possible otherwise.
Copy linkTweet thisAlerts:
@Scouse_onionauthorJan 09.2004 — Wow, thanks for the quick response and the welcome.

Cheers for answering my question, I could have wasted many many more days searching only to find out what you've just told me! I'm so glad I found this place! ?

Just out of curiosity, what is the "chromeless bug" thing you mentioned?
Copy linkTweet thisAlerts:
@fredmvJan 09.2004 — You're quite welcome. The chromeless bug is a huge security flaw in all versions of IE up to 6.0 (it's only fixed if you have SP1 installed I believe). Here's how it works: if you open a fullsize window, and then resize it, all browser chrome will be gone (including the titlebar), hence, "chromeless". Here's a simple example if you'd like to see it in action:<script type="text/javascript">
//<![CDATA[
var w = window.open('about:blank', '', 'fullscreen=1');
w.resizeTo(500, 500);
//]]>
</script>
Copy linkTweet thisAlerts:
@Scouse_onionauthorJan 09.2004 — I don't think I can really use that code to do what I need, but its still a useful thing to know.

Thanks for your help though.
×

Success!

Help @Scouse_onion 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.18,
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,
)...