• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 369
  • Last Modified:

JSP positioning

I have a jsp which has a button.

On click i open up a new independent jsp. How do i position it to place i require.

I know onload option calling js. But i dont want onload.

This should happen as soon as jsp is triggered before processing happens.

Any experts?
1 Solution
See: http://www.pageresource.com/jscript/jwinopen.htm

Most notably the last section entitled "Set the Window Position"
Here is also a handy way to obtain the main window's size/position.  With that and a little math you can then position your popup window relative to the main window instead of at specific monitor coordinates.

mahalasaAuthor Commented:
can resize sometimes lead to loss of data?  i see that sporadically it goes blank.
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

mahalasaAuthor Commented:
Hi drcheap...i have whole set of data to be passed to new jsp through js. How do i do it?
mahalasaAuthor Commented:
any experts on jsp?
Sathish David Kumar NArchitectCommented:
sorry i didnt get your question clealy?
when u click button that timw new window or same window will open the new Jsp??
can you tell clearly?
Open the window and move it to where you want to be:


function f() {
   wnd = window.open (url, name, options);
   wnd.moveTo (123, 456);
<a href="" onclick="f()" />

mahalasaAuthor Commented:
will check with these solutions

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now