open new window

Hi

I have a button that opens a new window using the javascript command window.open() in the onclick event, I'm developing on solaris and the app server is also installed here, the web browser that I use is mozilla and when I click on the button the new window opens just fine but the problem is when I try the application from a pc using explorer as web browser trough an intranet, the window opens but it minimizes itself, I don't know why, I suposse that this happens because of the browser, I probably have to add another command to the onclick event but I don't know which one...

I'd appreciate if somebody could help me

Thank you

Yese

[676 byte] By [Yesenia] at [2007-11-26 9:07:28]
# 1

Hi I found this info :

"JavaScript Does Windows... With the 4.0 versions (and later) of NetScape and Internet Explorer browsers, we can also, through JavaScript, specify the location on the screen that the window opens. These dimensions are given in pixels, measured horizontally and vertically down from the top left corner of the screen. Older web browsers will just ignore these options.

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:

1. 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)

2. 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)

Adding on to our earlier example, this code will tell 4.0 version web browsers to place the window 100 pixels over and 75 pixels down from the top left corner of the viewer's screen:

I have provided a sneak peek of

<a href="myimage.gif"

onClick="window.open('myimage.gif', 'myWin',

'status, width=300, height=200, screenX=100,screenY=75,left=100,top=75');

return false">my image</a> for you to see.

"

from; http://www.mcli.dist.maricopa.edu/tut/tut27c.html

hth

John

jawbe at 2007-7-6 23:22:28 > top of Java-index,Development Tools,Java Tools...
# 2
Hi John, thank you so much for taking the time to help me, the link you pasted was very usefull and now the new window does open on top of the others... I tried it on explorer, mozila and safari and it works fineThank you =)Yese
Yesenia at 2007-7-6 23:22:28 > top of Java-index,Development Tools,Java Tools...
# 3
Hi Yese,I'm glad this solved your issue !John
jawbe at 2007-7-6 23:22:28 > top of Java-index,Development Tools,Java Tools...