how do I pop a full size window pop under?
What do you mean? Please elaborate so we can get a better idea of what you’re trying to do, and help you.
I believe martin is referring to a “pop-under” window, eg one which is not in focus on load (browser appears in taskbar, but does not take over screen).
Full screen perhaps referring to taking up entire screen?
Either way, malicious bit of coding, sorry can’t actually provide it.
yuo put any pop-unders on your’re site and i never come back again!
come on guys, I’m not a crook. what I meant was a pop under the size of a fully open window.
<script language=“javascript”>
<!–
tpop = 1;
function pop() {
if (tpop == 1) {
twin =
window.open(“pop.htm” width=800,height=600,toolbar=1,scrollbars=1,status=1,resizable=1");
twin.blur(); }
}
// –>
</script>
this code opens a 800x600 window. I need to open a regular full size, maximized window. what do I need to change in the code?
thanks
<script language="javascript">
<!--
tpop = 1;
function pop() {
if (tpop == 1) {
var twin = window.open('pop.htm','width='+window.screen.availWidth+',height='+window.screen.availHeight+',top=0,left=0,toolbar=1,scrollbars=1,status=1,resizable=1");
twin.blur(); }
}
// -->
</script>
Note that the pixel width and height from your example have been replaced by the DOM reference for the available screen area.
As advised, use with caution as both popup/popunders and fullscreen windows are amongst the most unpopular ‘features’ of websites.
thanks but the code doesn’t work for me. did you try it out?
Sorry, my bad. I should have done a little more work on your script as it had other parts missing also (win name element) and incorrectly terminated string.
Here’s the corrected version.
var tpop = 1;
function pop() {
if (tpop == 1) {
var twin = window.open('pop.html','','width='+window.screen.availWidth+',height='+window.screen.availHeight+',toolbar=1,scrollbars=1,status=1,resizable=1');
self.focus();
}
}
<edit>
I threw in self.focus()* as some browsers will not refocus the opener with just the child.blur() method.
(* Instead of child.blur())
</edit>
Error 1024 unterminated string literal
There is an unmatched ’ or " (quote chartacter). The matching quote must always be on the same line.
it refers to this line:
var twin = window.open(‘clips.htm’,‘width=’+window.screen.availWidth+‘,height=’+window.screen.availHeight+',toolbar=1,scrollbars=1,status=1,resizable=1" );
I mentioned that in my last post and had already corrected it in the code in that post.
Thanks but what it does is pop a window the size of the screen but it’s not maximized. it pops up a bit to the right on the screen and I have to maximize it.
This is for IE. In Opera, which is of couse superior to IE, this can pop a fully maximized window: open(“pop.htm”);
Now, is it possible at all to do it in IE?
[advisor edit: Linking to adult content is not permitted anywhere on this site - many of our members are minors]
Ahaa, k.
There is a difference between fullscreen and maximised (which is available only to Internet Explorer users in Windows).
var tpop = 1;
function pop() {
if (tpop == 1) {
var twin = window.open('pop.html','','width='+window.screen.availWidth+',height='+window.screen.availHeight+',fullscreen=1,toolbar=1,scrollbars=1,status=1,resizable=1');
self.focus();
}
}
<afaik>
By adding fullscreen=1 to the window features (I think) it will give true (OS level) maximised windows for IE/Win users.
Other will simply get a standard ‘fullscreen’ (but not ‘maximised’) window.
For future reference, what you are referring to is called ‘kiosk mode’.
Unfortunately, as you can see from the names involved (kiosk mode, fullscreen, maximised, full screen), there is often much confusion about what effect a person is actually after.
Being a mac user, I’m having to rely on the various scraps of info I’ve picked up along the way without having the facilities to actually confirm or test them. Sorry if anything I post turns out to be out-dated or innaccurate.
See also:
http://is-it-true.org/nt/atips/atips350.shtml
http://developer.irt.org/script/1480.htm
</afaik>
thanks for your help but it’s still not what i meant
in fact, i don’t know how else i can put it. the fullscreen=1 tag pops a truly FULLSCREEN window, no address bar, no toolbar, no nothing. this is not what i want to achieve.
let me put it this way:
when you open your IE you can minimize, maximize and close the window (top right hand corner of the window). I want to pop a window that will look like a MAXIMIZED window (a result of clicking on ‘maximize’ in the top right hand corner of an IE window).
sorry, if I’m still not making myslef clear but english is not my native language and besides I have no idea how else i can describe it
I may be banging my head against the wall with IE because when I shift-click on a link in my IE browser the new window pops up and it’s not maximized either (I have to click to maximize it). Is it always like that?
Sorry, but IE sucks so badly for me that I only use Opera these days. Unfortunately I must optimize my pages for IE for obvious reasons.
I think there is code you can put into that pop.htm poage that will maximize it onload.
quite possible. anyone knows what the code is?
The code that would go into the pop.htm would most likely be javascript and would therefore offer you no more facilities than those available to you in the popup script itself.
(Why are you shift clicking on the link? It’s already a popup so there’s no need to go through the motions of making it open in a new window.)
Afaik, the only way to get truly-truly kiosk (maximised) mode is by using a certain string combination to ‘launch’ IE (via the start > run menu).
Being OS-level, this is something only the users themselves can do unless you have special script permissions setup on their pc/browser.
It cannot be triggered via ‘standard’ (uncertificated/unpermissed) javascript.
Fwiw, the for launching IE in kiosk mode is mentioned in one of the links I posted earlier.
nah, i was just shift clicking on some other page to see how my IE opens new windows from links. not maximized of course…
kind of dumb when you think about it, isn’t it? I mean why would I want to browse pages in a smaller window. Maximized should be the default.
Anyway, thanks for your help. I’ll leave it the way it is