Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a browser at full size screen 1

Status
Not open for further replies.

pbb

Programmer
Jan 8, 2001
151
US
Hello everyone
would anyone know a script that would enable me to have a browser window open AUTOMATICALLY full screen?
This is very urgent, any help will be greatly appreciated.
Thanks!

Patricia
 
Thanks a lot Ranjan! :)

I'll try that.

Thanks again

Patricia
 
Bluranj is right however there is a way that takes into consideration the taskbar as well as any application that take up desktop area by making the available area smaller for all applications.

use this correction :
<script>
window.resizeTo(screen.availWidth, screen.availHeight)
</script>

if you are using window.open() you might want to stop the resizing that occurs only after the page is loaded with the prior way.

Try adding this in the options height and width as well as position information for where you want the popup to appear at (screenX and screenY for netscape and top and left for IE):

<script>
var width = screen.availWidth
var height = screen.availHeight

window.open('yourUrl.html','name','width=' + width+ ',height=' + height + ',screenX=0,screenY=0,left=0,top=0')
</script>

I hope this helps. Gary Haran
 
Xutopia with this single post, you have helped me solve a BIG problem I have been having with IE displaying a 10-15 pixel gap on the right hand side of my pages with 100% width tables, and also IE producing unecessary scroll bars that I couldn't get rid of where text got close to the edge.

I just happened to come across this post and tried your script suggestion and it fixed BOTH problems for me.

Thanks A LOT for contributing to the forum!

Dave Fore
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top