PDA

View Full Version : Open new window


etg4free
11-02-2007, 11:22 PM
I have this

window.open('start.htm','','width=avail.width,height=avail.height,resizable=yes,status=yes,scrollbar s=yes')

I'm trying to get the screen to open in the largest available height and width. However, the status bar on top still indicates that the window can be "maximized". How do I make it so that the "maximize" button is not there? I still want to keep the status bar though.

toddandrae
11-03-2007, 12:00 AM
resizeable=no

etg4free
11-03-2007, 12:10 AM
That justs blurs out the maximize button. I need the window to actually be maximized.

toddandrae
11-03-2007, 12:28 AM
I misunderstood your question, sorry.

Try this
window.open(targeturl,"","fullscreen,scrollbars")

VIPStephan
11-03-2007, 01:29 AM
Note that this is bad practice in these days. Users might not be used to this and will feel uncomfortable, thus quickly leave your site. Also be aware that anyone can disable this (and I actually have every possibility disabled for JavaScript to screw with my browser window) because it’s just annoying. And it’s not good to force users to browse in full screen mode without being able to resize the window. I don't want this. And I don’t like sites/people doing this (that’s why I’ve disabled it). And I’m sure I’m not the only one.

etg4free
11-03-2007, 04:08 PM
That makes the window fullscreen with scrollbars. I still want the screen to have the bar on top. I've included two screenshots.

5809

etg4free
11-04-2007, 11:26 PM
bumppppp

etg4free
11-06-2007, 02:47 AM
Someone must know how to do this!! (or know that it's impossible)

Rappa
11-06-2007, 02:50 AM
i thought u wanted it to open fullscreen?

VIPStephan
11-06-2007, 02:55 AM
Someone must know how to do this!! (or know that it's impossible)

Yes, most likely. But apparently nobody wants to answer – maybe because it’s a bad idea and no coder with a little conscience will endorse this method. Get over it and find an alternative that is more current, user friendly, and accessible (if you ask that way I’m sure a lot of people will help you immediately).

Bill Posters
11-06-2007, 07:56 AM
Your syntax is/was wrong…

window.open('start.htm','','width='+window.screen.availWidth+',height='+window.screen.availHeight+', resizable=yes,status=yes,scrollbar s=yes')



Fwiw, I have conscience by the bucket-load. I simply choose not to be preachy about it.

The point has already been made that it's not necessarily the most popular thing you can do to a website, so I'm happy to give the OP the how-to and let them decide for themselves how best to handle their users.

Shame on me!

etg4free
11-07-2007, 03:03 AM
WOW Bill Posters. I couldn't have said it better myself. Thank you.

To the other(s): Unless you know my purpose for doing these things, please keep your comments to yourself. No need to waste your time posting your opinions.