Placement of popup browser window using behavior

I am using the Open Browser Window behavior in Dreamweaver to show information in a popup window. My problem is that when the window comes up, the original page scrolls to the top of the page. This means that viewers have to scroll down the original page to get back to where they were after the close the popup window. Is there a way to prevent scrolling of the original page when the Open Browser Window behavior is used, or do I have to figure out how to do it with Javascript? Any suggestions would be greatly appreciated.

Is there a way to prevent scrolling of the original page when the Open Browser Window behavior is used
Yes.
Your code probably looks like this -
<a href="#" onclick="MM_OpenBrWindow(...)">
Change it so that it looks like this -
<a href="#" onclick="MM_OpenBrWindow(...); return false">

Similar Messages

  • Open pdf in popup browser window

    Hello
    I want to show a pdf file which is stored in a blob column in the database in a popup browser window.
    I'm using apex 4.1 (soon 4.2) ans an 11gR2 database.
    I searched the OTN forum and found a lot of threads about this issue but I do not see a solution that works fine for me.
    Most inspiration from this post:
    Show PDF ....
    There is an example application from Kumar:
    http://apex.oracle.com/pls/apex/f?p=52018
    worspace: kumar2003
    username: test_user
    password: test
    application: 52018
    Test1 is the solution I want to create.
    I tried :
    Content-Disposition:  inline;and that works almost fine. Only the pdf is not in a popup browser window.
    Patrick Wolf suggests:
    <a href="your_download_link" target="_blank">PDF</a>But I do not exactly know what he means.
    Any help would be appreciated.
    Regards Erik

    Hi,
    I hope I understood your question correctly, if so my suggestion may be helpful. Otherwise I think it's nearly the same what paul writes, I only made clear my proposal in a website for you, first a photo:
    and here is the link: http://www.goldschmiede-blumberg.de/pdf/adob_pdf.php.
    Note 1: "Ausgabe 9" und "ein Mausklick hier genügt" are links!!
    Note 2: " Um pdf-Dateien ...." Means: To read pdf files, you need the free Adobe Reader. The current version you can download from the Adobe website.
    Look at it's source code.
    Viel Erfolg
    Hans-G.

  • Reg: To open a Browse Window Using Form Builder

    Dear All,
    I am trying to open a browse window using form builder.I am using forms 10g.
    I have user the following code.
    Declare
    l_file_name Varchar2(383);
    Begin
    l_file_name := webutil_file.file_open_dialog( );
    If
      l_file_name Is Not Null
    Then
      If
        :images.Rowid Is Not Null
      Then
        create_record;
      End If;
      client_image.read_image_file ( l_file_name, Substr ( l_file_name, Instr ( l_file_name , -1 ) ), 'images.images' );--block.item
    End If;
    End;I have attached the webutil.pll in attached library.
    It shows an error" WEBUTIL Object group not attached to this form".
    Can any one help me how to attach that object group.
    Thankx in advance.
    Cheers,
    Jai.

    write this in your 'Browse' Button's , when_button_pressed trigger
    DECLARE
      filename VARCHAR2(500);
    BEGIN
      filename:=GET_FILE_NAME(' ',NULL,NULL,'Choose any directory.',OPEN_FILE,TRUE);
      :txtbx3:=filename;  -- Here you will assign to you form's field.
    END;Edited by: Tuts009 on May 10, 2010 5:00 AM

  • How i can open a browser windows using a button in jsf ?

    Hi
    Thank you for reading my post
    how i can open a browser windows using a button in jsf ?
    for example if i want to open a window which will show http://www.mywebsite.com?name=TestName&family=TestFamily
    and before opening the window i need to set those two variables.
    can some one help me with a solution ?
    thank you

    Hi Legolas,
    Please refer to the answer provided by Chris in the EA forums.
    Cheers
    Giri

  • After upgrading to Firefox 8 for mac osx I am unable to close a browser window using command w, or command shift w?

    Hi there,
    After upgrading to Firefox 8 for mac osx I am unable to close a browser window using command w, or command shift w?
    Is there any way I can correct this as it is very annoying?
    Cheers
    Guy
    imac 2.93 GHz Intel Core i7
    osx 10.6.8

    It only happens for me on pages where I've allowed some Flash element to play (I have Flashblocker) such as a YouTube video.

  • Help with image placement in new browser window.

    I need help trying to position images that are being opened
    in a new browser window. I have created a photo gallery with
    thumbnails that are links to the larger image. Ive used the
    behaviors panel to open the new image in a new browser window but
    the image is always shown at the top left margins of the new
    window. Is there a way to 1. center the image in the new window, 2.
    change the background color of the new window that opens.
    Any help would be appreciated.
    Stu

    If, as I read it, you are simply opening the image, it will
    always be upper
    left and cannot be changed. IF you wnat to position it, you
    will need to
    create a new html page and position your image on that page,
    then call the
    page, not the image from your thumbnail link.
    In Dreamweaver in the command menu try the "Create Web Photo
    Album" command.
    It will create all of your pages, links and thumbnails for
    you. (requires
    Fireworks)
    Michael Hager
    www.cmhager.com
    "Stu127" <[email protected]> wrote in
    message
    news:eo70n5$qo5$[email protected]..
    >I need help trying to position images that are being
    opened in a new
    >browser
    > window. I have created a photo gallery with thumbnails
    that are links to
    > the
    > larger image. Ive used the behaviors panel to open the
    new image in a new
    > browser window but the image is always shown at the top
    left margins of
    > the new
    > window. Is there a way to 1. center the image in the new
    window, 2.
    > change the
    > background color of the new window that opens.
    >
    > Any help would be appreciated.
    > Stu
    >

  • Close browser window using FPM

    Hi all,
    My requirement is to close the browser window on click of a button in the webdynpro component.
    I have triggered  FPM event gc_event_close in after action of that view.
    The window gets closed perfectly if I execute the application from SE80.
    But the window is not getting closed when I run the application from portal, instead I get a message saying' The application is closed, you can now close the window'
    Any pointers on closing the browser window when the application is run from portal would be of great help.
    Thanks in advance.
    Veda

    I can confirm this behavior. You can change this behavior by adding code in process_event method.
    1. Fire a portal event with
    "urn:com.sapportals:navigation", "CloseWindow", ""
    OR
    1. Fire a Exit plug with close_window = abap_true
    [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/frameset.htm|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/frameset.htm]

  • Locate link browser window using windows 7 outlook 2003

    I have been using windows 7 (64bit) along with outlook 2003 with no problem till today. All of a suddden everytime I click to open a link from within an outlook e-mail message  a "locate link browser window opens" I see lots of issues on the internet with Vista or XP but no specific causes or solutions with 7.

    Hi,
    Based on my research, I would like to suggest the following:
    1.    Try to set your browser as Default in “Control Panel\All Control Panel Items\Default Programs”:
    Change which programs Windows uses by default
    2.    Please also try this:
    The Locate Link Browser dialog box appears when you open a Web link in an e-mail message in Outlook 2003
    Considering this issue is related to Microsoft Office, if the issue persists, it is recommended that you go to Microsoft Office Forum for further investigation:
    Microsoft Office Forums
    Hope this helps. Thanks.
    Nicholas Li - MSFT

  • Flipping between browser windows using Swiss/French QWERTZ keyboard

    When using an attached US keyboard I just use alt+` to flip between different windows when I'm using Safari, Firefox of Chrome... but when I'm away from the desk and using the laptop QWERZ keyboard I can't find the correct keystroke - can anyone advise? I just want to quickly scroll between the different browser windows I have open in just one application.

    Do you have more than one language enabled in International?
    You can use Keyboard Viewer to see the active/enabled keys.
    I don't have the French/Swiss keyboard profile loaded at the moment.
    [Command] + [Shift] + [Plus Sign] = that is the right curly brace above right square bracket on my US keyboard} works with my German keyboard profile enabled.

  • Making buttons link to popup browser windows in ActionScript 3

    I am trying to figure out how to make buttons on my flash
    file link to URLs that appear in a window of fixed dimensions (with
    scroller bars) next to my Flash window.
    I am aware that Adobe has instructions for creating pop-up
    browser windows through Flash (
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14192)
    However, what I'm trying to do is a bit more complicated,
    since I want to have multiple embedded invisible buttons in the
    Flash window that each take you to a specific URL when you click on
    them. Alternatively I'd be happy if any button click resulted in a
    link to a random selection from a pre-programmed list of URLs.
    Any suggestions? This is for ActionScript 3.

    Hi Im having a simlar problem with creating a button that
    opens up a url link in a blank browser window and keeping it at a
    specific size. here is the code that I'm using.
    my_btn.addEventListener(MouseEvent.MOUSE_DOWN,
    mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {
    var urlStr = "my info_page.html";
    if (ExternalInterface.available) {
    ExternalInterface.call( "window.open", urlStr, "_blank",
    "width=400,height=400");
    } else {
    var urlRequest:URLRequest = new URLRequest(urlStr);
    navigateToURL(urlRequest);
    the problem is the window doesn't open when I click on the
    button and I don't know how to fix this

  • Suddenly after running Firefox for years, I cannot open multiple browser windows using Windows XP.

    I have always been able to open more than one browser windows, so I can have my email minimized while doing other tasks on one or more other browsing pages. All of a sudden, I can only open one browsing page. When I try to open a second, I get the red circle with a diagonal slash through it stopping me.
    Can anyone help me?

    Hi,
    The path to the profile would usually be '''My Computer''' > '''?:\Documents and Settings\yourusername\Application Data\Mozilla\Firefox\Profiles\***.default''', if there are no other profiles. If there is another profile, it would be that instead of ***.default. You may have to enable hidden files and folders.
    Please see [http://kb.mozillazine.org/Profile_folder_-_Firefox#Windows this.]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]

  • Popup help window using layeredpane

    what i would like to implement is a window that pops up whenever a user clicks on a button; it will show a bunch of help text (probably an JEditorPane full of HTML). i want it to behave like a popup menu (right click) in that it will disappear when focus is placed somehere else but remain when user is clicking/selecting inside it.
    i've tried using JWindow and JFrames but they have problems (don't handle focus well/at all and frames have an annoying title bar).
    can i simply put a panel of stuff in the LayeredPane.POPUP_LAYER; once that is done how do i properly detect for a focus lost situation -- in the super's mousePressed? via a focusListener? somewhere in layered pane? (hmmm....can a read-only HTML page actually get focus?)
    is it possible to reuse/inherit JPopup somehow? its just a JComponent but how do a i add non-items to it.
    i'm sure someone's done this before but i couldn't find it in the archives.
    thanks,
    dd.

    You might want to consider using HTML tooltips
    instead. See the SwingSet demo that comes with the
    JDK on how to do it.just to describe what i want a little bit more.
    say there is a labelled text field " address : [___________]"
    i would like the user to be able to click on the "address" label and have a help window come up.
    it would contain hyperlinks to help docs and other components that require that help window itself have focus. also, it would be fairly large which is not suitable for tooltips.
    i will reread the tooltip docs but unless they can somehow get focus i'm not sure how to use them.
    there are some similarities that maybe i could inherit though.

  • Creating a popup browser window from an applet

    Hi, in a java applet that I am developing i use AppletContext.showDocument to load a web-page. The thing is i want this window to be a popup, devoid of toolbar and statusbar, etc. do you have any idea on how i could accomplish this?
    I tried to do it with javascript, but i could only create new pop-up child windows of the html file that contained the method for opening pop-ups, i could not change the parent window itself to become a popup.
    If you have any idea on how to either create a pop-up type window from an applet, or make the current window into a popup i would be grateful to hear it.

    The only way I can think of is to use JSObject to call JavaScript on the current page & have JavaScript do a window.open
    http://forum.java.sun.com/thread.jsp?forum=31&thread=295808

  • Accessing the parent browser window using JNLP

    I have a JWS appln which would launch a URL in the browser using BasicService of JNLP API.
    This URL is always launched in a new browser. Is it possible to launch this URL in the browser which launched the JWS appln?
    Can someone help me on this?

    Hmm...interesting you should suggest this. I tried this prior to the other method. This too seems to be ignored. I'm running IE v6 on WindowsXP - with Java script enabled.
    Is this a change that would require me to bounce the OAS? Any other thoughts?

  • head Title in browser window using UIX

    I have an application that is using UIX. I was wondering if anyone knew a way to add a variable value to the header of the webpage, meaning to top bar where the minimize maximize and close button are for each web page window.
    Currently I have it saying a title but I want to add a functionality where it will post a value that I am storing in a bean.
    Thanks

    Sorry I just got it.

Maybe you are looking for