aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes  window.open screenX is un-cooperative Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark " window.open screenX is un-cooperative" Watch " window.open screenX is un-cooperative" New topic
Author

window.open screenX is un-cooperative

Lou Pellegrini
Ranch Hand

Joined: Nov 11, 2003
Posts: 105
Hi,
Here's my open script
function openSearch(){
search = window.open('searchworkflow.do', 'search', 'width=850, height=500, resizable=yes, scrollbars=yes, status=yes, screenX=100, screenY=100');
search.focus();
}
No matter what I do to screenX, the window won't budge. I need to move the window to the left so the right side is not cut off.
Any suggestions?
Thank you in advance for your help,
Lou
Lou Pellegrini
Ranch Hand

Joined: Nov 11, 2003
Posts: 105
As happens frequently, I post the question then a few minutes later I find the answer. I tested it, works fine.
Here it is
http://www.mcli.dist.maricopa.edu/tut/tut27c.html
Unfortunately, NetScape and Internet Explorer use different names for these options! So to make it work on both browsers, you must specify the settings twice:
screenX=hh,screenY=yy
specifies the location of the upper left corner of the window, measured from the top left corner of the monitor (for NetScape 4.0 and later)
left=hh,top=yy
specifies the location of the upper left corner of the window, measured from the top left corner of the monitor (for Internet Explorer 4.0 and later)
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
look at this tool of mine:
http://www10.brinkster.com/A1ien51/scripts/PopUpWinGenV3.htm
 
 
subject: window.open screenX is un-cooperative
 
Threads others viewed
Refresh Issue
Pop up from an html:link with an action attribute
Window Sizing
Pop up from an html:link with an action attribute
How to disable the close(cross) button of a window
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture