How to center a new- opened window page?

let's say i have 2 jsp files. i have a hyperlink in page 1, if i click that hyperlink, a pop up window will appear, how will i let that pop up window appear in center?
thanks

you can do it by javascript...
function centerWindow() {
    if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 640, yMax=480;
    var xOffset = (xMax - 200)/2, yOffset = (yMax - 200)/2;
    window.open('page.html','windowname',
    'width=200,height=200,screenX='+xOffset+',screenY='+yOffset+',
    top='+yOffset+',left='+xOffset+'');

Similar Messages

  • How to create a new template for pages in iPad?

    How to create a new template for pages in iPad?

    In spite of the latest updates Pages for iPad does not support:
    1) User templates
    2) Headers
    3) Footers
    4) Page numbers
    and it is not compatible with Pages for OSX, a document cannot be edited alternatively on Mac and iPad without destroying headers and footers.
    - The Word export is far from perfect
    - Does not really support Page Layout mode (you cannot duplicate a page at least)
    - Does not have a multi-page overview
    - The spelling support of iOS and OSX is at the level of Apple Maps except 4-5 languages.
    - It takes a long time until it starts
    INSTEAD, according to the latest updates:
    - It can do change tracking
    - Lock and unlock objects
    - Add reflections to shapes
    Dear Apple, please understand:
    - We like iPad and we wish to use it for real work.
    - We wish to have user templates, headers, footers and page numbers.
    - We do not expect all the features of Pages for OSX, but we do expect real compatibility.
    - We do not wish to switch back to Word for Windows unless you force us.
    Please try to concentrate on real development not on unimportant changes like in the latest dissapointing update.

  • How to create a new tag in page properties in the sidekick of geometrrix page

    how to create a new tag in page properties in the sidekick of geometrrix pagesame as basic, advanced, blue print??

    Hi prachi,
        Is it tag OR Tab ? Seems like you are looking for Tab. Look at [1] & overlay to custamize per your need. Or define at your page component.
        [1]   /libs/foundation/components/page/dialog/items/tabs/items
    Thanks,
    Sham

  • When I open a file in Photoshop CS4, how can I resize My Open Window File?it is stuck on full screen

    When I Open a File in Photoshop CS4, How can I Resize My Open Window File? It is stuck on Full Screen?

    Which operating system are you using?
    On a windows os, usually one can just double click on the title bar in the open dialog.

  • How do i mail an open internet page directly?

    Hi,
    How do I mail an open internet page on my iphone? The
    only option that I see is to mail the link.
    Thank you in advance to anyone who tries to help!
    Pat

    you can take a snapshot of the screen by momentarily pressing the home button and the sleep button at the same time. go to your photos and find the picture in your camera roll and e mail it.

  • How do you show all open windows in all applications?

    Previous to Lion, I used to be able to go to a hot corner and all of the open windows in all applications would appear neatly side by side. Now I get stacks of windows grouped by application. How can I go back to the old way where every window was visible? This is helpful in Photoshop when I need to see all of the images I am working on and all of the images on my website in Safari.

    You don't have a hot-corner for that anymore.
    You use a gesture for that now. You can either 4-finger swipe down, or place the tips of your fingers in the center of your track pad.  Your fingers should be bunched up and touching each other.  To show all windows, expand your fingers, as if you were showing someone "5" on your fingers.

  • New "Open this page in appName" message in iOS5

    I'm developing a web app that opens an Apple app. I upgraded my iPhone to iOS5 and now get a message "Open this page in appName". There was no message in iOS4. Operations work fine in both other than this unnecessary message. How can I prevent the message?
    The javascript the launches the app is similar to this:
        window.location = 'appName://?' + getParams.join('&');
    Thanks for your help.
    Tom Armstrong

    Just wanted to let anyone interested know that I found the problem.
    The actual javascript that does not produce a security prompt in iOS4, but does in iOS5 is:
                window.open('appName://?' + getParams.join('&'), appName.windowname);
    The javascript that works without a security prompt in iOS5 is:
                window.location = 'appName://?' + getParams.join('&');

  • Maximize the new opened window

    Hi all,
    How can I maximize the window which opened using web.show_document() ?
    From
    Chirag Patel

    Hi,
    if you add Javascript to teh Forms page and use web.show_document() to call teh Javascript, passing in teh URL tha should be show in teh opened window, then you can control the size of the opened window.
    Frank

  • How can I set the opening home page of FIrefox to display the current bookmarks. This used to work with bookmarks.html but I understand this file is no longer current.

    I wish to display my current bookmarks as my opening home page in Firefox. I do not wish to use the Bookmarks sidebar instead. It used to work to open with bookmarks.html, which was and still is stored in my Firefox profile. However, I understand this file is no longer kept current but is only retained for legacy/compatibility reasons, and that the current bookmarks info is now stored in places.sqlite, etc. Is there a way with the new versions of Firefox to display as a full opening webpage the assuredly current bookmarks? Thank you

    Hi Jaime,
    Are you saying, you are getting junk characters in the email attachment? Then pls check the following. Since you want to send Japanese fonts, please pass language 'J' in both  objpack-obj_langu = '3' & doc_chng-obj_langu  = '3' instead of '3' please replace it with 'J'.
    Another thing which you may have to check is the SCOT device type. As I understand from my basis colleague, this may also affect your attachment fonts since the emails are sent through SCOT. Go to transaction SCOT-> Settings-> Device types for format conversion. Check whether wrong device type is defined for Japanese there. Hope this helps
    Regards,
    Gokul

  • How to center a component on the page????

    Hi all
    i want to center a component on the page
    Sorry it may be some thing trivial ???
    but i ve a command button i want to center it on the page ????
    how???

    Hi,
    try this steps:
    1-surround the command button with panelGroupLayout with layout Horizontal.
    2-In panelGroupLayout property select Style tab.
    3-in the Text tab set horizontal Align with Center.
    4-in Box tab set width with 100 Percent
    if panelGroupLayout inside any other component make this palce width 100 percent and its Align Horizontal with Center.
    Sameh Nassar

  • How do you make the open window as big as the screen?

    When I open a window in safari it does not take up the whole screen. I have tried to maximize yet I still see the desktop in the background. How can I make the current window take up the whole screen?

    On the Mac, 'maximize' (the green button in the title bar) is +context sensitive+ - it expands the window based on the content of the window. If the content is not screen-filling, the window won't get any bigger than necessary. There's no 'global' solution to this for OS X, but for Safari in particular, the Saft plugin has an option for full-screen browsing.
    http://pimpmysafari.com/plugins/saft

  • How to stop IE9 from opening web page in the middle of browser

    Greetings,
    I'm opening a page with a video on it and for some reason, IE9 insists on opening the page so that the bottom of the video is in line with the bottom of the IE9 browser window.
    It's like IE doesn't want to cut off the lower part of the video.
    FF is not having this problem and opens pages with videos as it should; at the top.
    This pic doesn't really do it justice, but when the page opens, the video is in line with the bottom of the browser window.
    Thanks for any help you can give!
    k

    It looks exactly the same to me in FF10 and IE9 on Vista.  The page is longer than my viewport.  I must use the vertical scrollbar to see the page bottom.   Hit Ctrl+ - a couple of times to Zoom Out.  Refresh the page (F5).
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • [SOLVED] Gnome doesn't apply the theme to new opened windows

    Hi,
    I'm using Gnome as desktop environment, but encountered a really annoying issue .
    I want to change the theme and therefore do the following "Right click on desktop -> "Change desktop background" -> Theme -> "Darklooks". All opened windows (as well as the panels) get now dark, just as expected. But as soon as I open up a new windows (or add something to a panel) it doesn't get affected by the theme, but it is display with the standard bright grey. After changing the theme again (I have to choose another first, and then go back to "Darklooks") all "new" windows get dark also.
    As I'm not happy with this situation I ask you for help? What is wrong with my Gnome?
    Last edited by johnpatcher (2009-09-05 19:37:14)

    I furthermore found out that this bug is already reported: http://bugzilla.gnome.org/show_bug.cgi?id=540796

  • How to launch a new terminal window from the current Finder folder?

    Hello. I would like to have something like "DOS prompt here" menu item on the Finder popup menu, so that when I click it a new Terminal window is open and set to the respective directory.
    Any ideas?

    I don't know of a way to do that... You might be able to use FruitMenu
    http://www.unsanity.com/haxies/fruitmenu
    and create a script to launch for the contextual menu that does what you want.
    I just open Terminal (by clicking the icon on the Dock), type "cd " and drag the icon of the folder I want to go to to the terminal window (and Return). It's a few steps but not that bad.

  • How to create a new iTunes window ?

    I want to create a new iTunes window which will have only classical music.
    I tried first other options (you cannot move, only copy to playlist) :
    I created a subfolder and moved (actually copied) the tracks. I then try to erase the tracks from the main folder but it will also erase the tracks in the subfolder.
    I then try to uncheck (in the main) but then it uncheck also in the subfolder.
    How can I have these tracks in the subfolder and not in the main folder ?
    I guess if I create a new window it will work but I forgot how to do this (I knew it, I did it; I forgot how)

    Try a search

Maybe you are looking for

  • Discoverer Report Registration

    Hi i am working for the discoverer reports for the first time it is good to working on it but i dont know how to register them to oracle applications and how to run from the front end? can any body help me out of these...? Krishna.V

  • G5/iSight Behavior Changes/Problems

    Couple of things changed on my iMac. First loading cd's on to iTunes take forever and it used to start playing the disc after the first song was loaded now it doesn't play at all. if I hit play while the disc is loading it goes crazy making all kinds

  • My startup disk is full:  how do I clean it up?  Simply deleting some files does not help.

    I get the message that my startup disk is full. It says to delete some files to make more space; but after deleting some files, this message will reappear again after a while.  What else can be done?

  • Where can I find download link for CS6 programs? (NOT CC versions)

    Hi, I just bought 2 software licenses (for Illustrator CS6 and Photoshop CS6), but I can't find on adobe website where to download Illustrator CS6 and Photoshop CS6, I just find CC versions, but my serial numbers don't work for CC versions. Can you t

  • How to assign MMC with an AKAI MPD-24

    Hi, I got a problem. I assigned each potentiometer of my MPD-24 very easily in Logic. But I don't know how to assign the MMC commands (Play, stop, rec...). I tried the same way I did for the potentiometers but it does not work ! Have you got any idea