Open another website in a new browser window

I can't seem to create links to external websites that open
as intended in a new browser window while leaving the main browser
window unchanged. Except in Safari on a Mac. See sample code.
In Safari on a Mac this opens the new window and behaves as I
want. In Safari on a PC it opens a new window, but in back. In
Firefox on Mac I get an error message in which, when the "OK"
button is cliked on, a new window opens in back of the main window.
Same thing on a PC. Internet Explorer on a PC opens a new window
but displays an error message forcing you to clik the back button
to return to the main page.
If I specify the main page url in the link field, then the
main page gets reset to the top, which I don't want.
How can I get FireFox and IE to accomplish this gracefully?
To observe behavior go to
http://www.digifon.com/framesetal_id.htm

Don't use Frames. However, the issue of opening a new window
is still
hotly debated. My own approach is to mark the link with an
icon and
then to open a new window (or tab if the user prefers). If
done
properly with javascript, this will not spawn a myriad of
windows and
Standards-compliant. (And further, if javascript is off, the
new page
will simply open in the current window.)
Based on this philosophy, I offer a DW Extension that makes
adding this
behavior dead simple. Here is an example of a page that uses
it to good
advantage. Despite all the external links and pdf links on
the page,
the Extension only needed to be added once to the page,
rather than
adding it to each and every link. Links added to the page
AFTER the
Extension is applied are ALSO acted on, a great time saver in
my
opinion, and easy on the user:
http://squamscott.org/scc_green.asp
The DW Extension is available here:
http://divahtml.com/products/divaPOPgold/open_popup_windows.php
E. Michael Brandt
www.divahtml.com
www.divahtml.com/products/scripts_dreamweaver_extensions.php
Standards-compliant scripts and Dreamweaver Extensions
www.valleywebdesigns.com/vwd_Vdw.asp
JustSo PictureWindow
JustSo PhotoAlbum, et alia

Similar Messages

  • Dreamweaver - Chrome open a video in a new browser window not working

    Hi guys, i'm pretty novice to dreamweaver and i've putting a site together recently...
    One thing i am trying to do is open a video in a new browser window when the button is clicked upon.
    I have done what i thought i needed to do this, and in safari and other browsers this works fine. In Google Chrome however this doesn't seem to want to work and rather then opening and playing the video it just automatically starts to download it.
    I'm sure it is a simple fix and i apologise for the thread all about it but any help would be appreciated.
    http://hauntingskateboards.co.uk/media.html
    if you click on Joe or Dean button you should see what I mean... anyway thanks in advance!

    Create Pop-Up Window in DW Behaviors Panel
    http://alt-web.blogspot.com/2012/03/create-pop-up-window-in-dreamweaver.html
    Nancy O.

  • Open sso enabled app in new browser window

    I have a java app deployed to OAS and secured with Single Sign on. I would like my app to open a report and display it in a new browser window. When the new window opens I am getting an error stating that user is not authorized to access the report. This is due to the session information (successful login) being stored with the cookie in the original browser window (where the session started and where the user originally logged in). Is there a way to pass that cookie information to the 2nd browser window...or some way to re-authenticate without having the user log on again...possibly some mod_osso set-up...or some additional code? TIA.

    Hi Durairaj,
    The thing is that I did not get the desired answer to my query and the thread was posted in a wrong forum thus I have the query again inthe correct forum.
    Regards,
    Sweta.

  • Opening a URL in a new browser window

    Hello Experts,
    I am trying to open a dynamic url in a new browser window from a Portal application (travel and expenses). Basically, when a user clicks on the submit button, Badi IF_EX_TRIP_WEB_CHECK~USER_CHECK_CHANGES is called. In the BaDI, we have added code to concatenate a parameter to a url and then open a new browser window with that url. This works perfectly in r/3 using a tcode (pr_web_1200) but when I use the portal application under ESS, the window does not open and no error message is issued. We are using METHOD cl_gui_html_viewer->detach_url_in_browser. Any idea why this is not working through ESS in Portal? Is there some other method that we need to use? Any help is appreciated.
    Regards,
    Sal

    check....
    Re: Open Portal Transaction iView in new window *without* Browser window
    for iView (page) you probably set the property 'Launch in New Window' to value Display in Separate Window. To tune up the other otions you have the possibility to set the property Window Features, value should contain toolbar=no. These features will be used when Javascript opens up your window - you can apply any option coomonly documented. IMHO for your demands the best option is fullscreen=yes,toolbar=no - you get really the maximum possible size.

  • Open pdf's, documents in new browser window SharePoint 2010

    Hi all,
    when a user clicks on pdf's, documents, html pages etc in a document library I need them to open in a new browser window. I've found lots of articles on how to do it in 2007 but none work in 2010. I know its not an out of the box function but people
    have done it with Java script or adding code to the document library allitems.aspx web part, I just can't replicate those steps in 2010.
    I'm not a developer or anything but can put code in the right place using SharePoint designer 2010.
    Pulling my hair out at the mo,
    please help
    thanks in advance

    Create a Document Library called ScriptLibrary.
    Download the Jquery library here: http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.4.min.js
    Create a new file called: OpenPDF.js
    Paste the following Code in the file:
    $("A[href$=.pdf]").click(function() {
          window.open(this.href);
    Upload both files to your newly created ScriptLibrary.
    The ScriptLibrary should have 2 files: jquery-1.4.4.min.js and OpenPDF.js
    Navigate to the List Page that has the PDF's that you need opened in a new window.
    Click Site Actions: Edit Page,
    Insert > Content Editor WebPart
    Click to Edit the HTML Source of the HTML WebPart, then paste in the following to reference the two files you uploaded to your Script Library:
    <script type="text/javascript" src="/ScriptLibrary/jquery-1.4.4.min.js" ></script>
    <script type="text/javascript" src="/ScriptLibrary/OpenPDF.js" ></script>
    *The src needs to point to the files you uploaded
    Save the page then click on a PDF, it should open in a new window.
    You can then export that ContentEditorWebPart to your webpart gallery, and just insert the webpart on any page that needs the same functionality.

  • Link to another page in a new browser window

    Hey Guys,
    I wanted to know how to set up a link to another page that loads up in a new browser window.
    This what my code looks like:
    <!--
    htp.print('<center>' || :P1_11 );
    htp.print('
    --!>
    This works but the problem is that it goes straight to the login window and asks the user to login again and then it goes to the desired page. Is there a way to set up the link so it goes directly to the new page in a new browser without having the user to log in again?

    Have you tried using the #SESSION# substitution string in the URL instead of hard-coding the session ID into the link?
    By the way, why is so much of your stuff in anonymous blocks/procedures? Just curious.
    Earl

  • Opening a state in a new browser window?

    How to open a link button..(the link button actually changes the state of the page) but i want to open that in a new browser window....
    Any help....

    check....
    Re: Open Portal Transaction iView in new window *without* Browser window
    for iView (page) you probably set the property 'Launch in New Window' to value Display in Separate Window. To tune up the other otions you have the possibility to set the property Window Features, value should contain toolbar=no. These features will be used when Javascript opens up your window - you can apply any option coomonly documented. IMHO for your demands the best option is fullscreen=yes,toolbar=no - you get really the maximum possible size.

  • When "Use Google Instant", "Open search results in a new browser window." does not function.

    In the "Google Search Setting", if select "Do not use Google Instant", then the selected search result of Google Search will be displayed in a new window, but if "Use Google Instant", the selected result will replace Google Search window. This problem does not exist when using Chrome Browser.

    That does what it says - even if Google tells the browser to open the page in a new window, you have told Firefox to ignore that and open it in a new tab. Uncheck the box and you should get the result you want.

  • Open a view in a new browser window

    Hi Experts,
    Can you pls guide me to open a new window ( Browser) on clicking a Button, Currently I could open a window but it looks like popup.
    In my case I want a separate browser to be opened.
    Please advice.
    Regards,
    Bala

    There are actually only 2 options:
    -- external browser window via URL (separate WD application is started)
    -- internal (non-movable non-resizable) modal window inside main application window.
    first at the html page, add the code:
    <script language="javascript">
    function openwindow(){
    window.open("view");
    </script>
    in the page_load event,add the code:
    private void Page_Load(object sender, System.EventArgs e)
    this.ImageButton1.Attributes.Add("onclick","openwindow()");
    Message was edited by:
            Kanwalpreet

  • Open the HTML attachment in new browser window

    Hi all,
    There is a Bsp application in which the table view has list of all attachmnets.
    When I click on a cell a popup opens asking whether the file is to be opened , saved or cancel.
    When I click on open then if it is a TXT attachment it opens in a notepad but if it is an HTML attachmnet it gets opened in the same browser window instaed of a new one.
    What do i do to open the HTML attachment in a new Beowser window.
    Regards,
    Sweta.

    Hi Durairaj,
    The thing is that I did not get the desired answer to my query and the thread was posted in a wrong forum thus I have the query again inthe correct forum.
    Regards,
    Sweta.

  • Strange Error while opening Web UI in a new browser window

    Dear Experts
    My requirement is to launch one of my custom Web UI screens in a new window upon clicking a button.
    I am successfull in lauching it in new window.
    How did I do it:
    Step 1) Created a custom object type (ZOBJ) for my z component in SPRO->UI Framework Definition->Define UI Object Types.
    Step 2) Created a logical link (ZLL) for my Z component in SPRO->UI Framework->Technical Role Definition->Define Navigation Bar Profile.
    After that, In the same path, select Define Profile->Define Generic OP mapping->(Here Assign Object type ZOBJ(step 1) and Logical link ZLL(step 2) )
    Then created a dynamic URL and passed this URL to the "on_client_click" parameter of my button.
    Sample code is below.
    I put the below in the .htm of the view where my button was declared.
    data: lv_url_string TYPE string.
    lv_url_string = 'http://server name:port number/sap/bc/bsp/sap/crm_ui_frame/default.htm?sap-syscmd=nocookie&
    crm-object-type=ZOBJ&crm-object-action=B'.
    Note: Here ZOBJ is my custom object type that I created for my Z component.
    <thtmlb:button id            = "NW"
                         onClientClick = "javascript:window.open('<%= lv_url_string %>');"              
                         tooltip       = "New Window"
                         text          = "New Window" />
    Problem I am facing:
    The above code is successfully opening my custom screen in a new window.
    But on the toolbar (where we usually see error messages in Web UI),
    I am getting an error message with the below description.
    Type= SYSTEM_ERROR, ID= ERROR_SESSION_INIT, description= 16AA9A3937A9BB56E10000000A11447B
    I am not able to understand what this error is.  The message is appearing only for the first time I am displaying my Z component in a new screen. Interestingly, when I do some action on my screen (expand the assignment block for example), this message is gone.  This message doesn't seem to be effecting any functionality, but the users certainly don't want to see an error messsage like this.
    I did some research on this and this error looks to be coming from the class CX_WS_MESSAGE_SYSTEM.
    This class has an attribute (CX_ROOT) with initial value "16AA9A3937A9BB56E10000000A11447B" (same one I am getting in my error message). I am not sure though because this attribute (CX_ROOT) is present in several other classes also.
    I would really appreciate if somebody can throw some light on this issue.
    Thanks
    Raj

    Hi Arun
    Thanks for your reply.
    I tried the way you suggested. But unfortunately I am still getting the same old error.
    Forget to mention something...actually I am seeing this error in the new session (window) only. My original window is not showing any error.
    And also just FYI...This is inside the Interaction Center Web UI profile ->Account Identification -> Identify Account->Enter Account ID->Click on Confirm button.
    At this point, I am first showing a popup window with text "Do you want to open Partner details in new window".
    This popup has 2 buttons 'Yes' and 'No'.. If the user clicks on 'Yes', then I am opening my custom screen (Partner Details) in a new window.
    This is the point I am seeing the error  (only in the new window).
    Type= SYSTEM_ERROR, ID= ERROR_SESSION_INIT, description= 16AA9A3937A9BB56E10000000A11447B
    This custom screen contains several (only) assignment blocks (all lazy initially). When the user expands on any assigment block, the error is gone and everything looks good.
    Please suggest.
    Thanks and Regards
    Raj

  • Open PDF file in a new browser window

    I have a PDF file on the harddrive and I call a function from BalusC :
    public static void downloadPDF(FacesContext facesContext, String path, String fileName)
    util.Logger.append("Path = " + path );
    util.Logger.append("file name = " + fileName);
    ExternalContext externalContext = facesContext.getExternalContext();
    HttpServletResponse response = (HttpServletResponse) externalContext.getResponse();
    File file = new File(path, fileName);
    BufferedInputStream input = null;
    BufferedOutputStream output = null;
    try
    //open file
    util.Logger.append("1");
    input = new BufferedInputStream(new FileInputStream(file), 10240);
    //Init servlet response
    util.Logger.append("2");
    response.reset();
    util.Logger.append("3");
    response.setContentType("application/pdf");
    util.Logger.append("4");
    response.setContentLength((int)file.length());
    util.Logger.append("5");
    response.setHeader("Content-disposition", "inline; filename=\"" + fileName + "\"");
    util.Logger.append("6");
    output = new BufferedOutputStream(response.getOutputStream(), 10240);
    util.Logger.append("7");
    //write file contents to response
    byte[] buffer = new byte[10240];
    int length;
    util.Logger.append("8");
    while ((length = input.read(buffer)) > 0)
    output.write(buffer, 0, length);
    util.Logger.append("9");
    //finalize task
    output.flush();
    util.Logger.append("10");
    catch (IOException e)
    util.Logger.append("reporting.Utilities :: downloadPDF :: " + e.getMessage());
    finally
    util.Logger.append("finally");
    close(output);
    close(input);
    //inform JSF that it doesn't need to handle response
    //this is very important, otherwise you will get the following exception in logs:
    //java.lang.IllegalStateException: cannot forward after response has been comitted
    facesContext.responseComplete();
    private static void close(Closeable resource)
    if (resource != null)
    try
    resource.close();
    catch (IOException e)
    e.printStackTrace();
    This works like a charm, but the problem is that the PDF is opened in current window instead of a new one. I checked posts on this problem on this forum but i haven't found any answer to my problem. As you can see i added some 'idiot' logs just to make sure i have no errors. I see them all in my log file and there is absolutely no error. I simply see the PDF in the same window.
    Can anyone help me, please?
    Thank you.
    (Pls tell me if you need any other information)

    My problem is that the parent form has 4 buttons and a grid.
    3 buttons are Add/Edit/Delete for records in the grid. Only the 4th button is the Print report and this is the only one i need to open in another page.
    Even if I create another page and I navigate to it, setting target of newly created page to open a new window will bring me the problem of having 2 windows to close once users wants to close the PDF which is kind of awkward.
    What is your advice?
    Thank you
    Marius

  • Opening external link in a new browser window

    Some of the external links in my web page need to open in
    their own window, leaving my site still open in the background. Can
    anyone tell me how to do this? I don't see an option anywhere when
    I am creating these links.
    The links are to, for example, "The City of ......", and
    could be quite long to traverse. I don't want my visitors to have
    to click their browser's back button who knows how many times to
    get back to my site.
    I would appreciate any suggestions, thanks

    It's not valid in a Strict doctype, either HTML or XHTML.
    A better way to do this would be to see this tutorial -
    http://www.tjkdesign.com/articles/popup_window_with_no_extra_markup.asp
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Dooza" <[email protected]> wrote in message
    news:gbaiof$17a$[email protected]..
    > Dooza wrote:
    >> malcster2 wrote:
    >>> dooza wrote
    >>>
    >>> malcster2 wrote:
    >>> > highlight your link in design view.
    >>> > > in the properties panel, change the
    target to _blank
    >>>
    >>> FYI this isn't valid XHTML, but is valid HTML,
    depends on what your
    >>> aiming at.
    >>>
    >>> ....
    >>>
    >>> validated ok mate. what exactly isn't valid
    xhtml?
    >>> this would be the code in question:
    >>> <p><a href="
    http://www.thesun.co.uk"
    target="_blank"
    >>>
    class="style1">www.thesun.co.uk</a></p>
    >>
    >>
    http://www.w3.org/MarkUp/2004/xhtml-faq#target
    >>
    >> Dooza
    >
    > But then I find this:
    http://learningtheworld.eu/2007/xhtml-with-target/
    >
    > Dooza

  • Setting preferences in Google search ... I can't get the "Open search results in a new browser window." setting to stick. It seems to revert randomly to the unset state. Other settings stick fine. Any ideas?

    Cookies settings:
    tracking not selected;
    Use custom setting for history selected;
    permanent browsing not selected;
    remember download not selected;
    remember search and form selected;
    accept cookies and accept 3rd party selected;
    keep until expired ...
    Clearing history settings:
    History ... browsing, download, active and cache selected
    forms and search, cookies not selected
    Data ... offline and site pref selected ; saved pwds not selected

    It's not an issue of whether the user saves or does not save the preferences, there are several factors that could be causing this. The KB link I posted above explains the issue & solution in detail.

  • Add button to open PDF in new browser window CS3

    I'm trying to add a button that says "Go" that will open a PDF in a new browser window.
    I've looked at the following article but don't see the "Select Action" pull-down.
    http://www.acrobatusers.com/blogs/tedpadova/opening-pdfs-new-browser-windows
    Using Dreamweaver CS3.
    Thanks in advance.

    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.

Maybe you are looking for

  • Is a 2008 MacBook2,1 compatible with a DVI or HDMI connector?

    I want to buy a new LCD monitor and have been told that a  HDMI or DVI connector would offer better resolution than the VGA I'm currently using with an older Mac, a 2008 (Intel) MacBook 2,1 (OS 10.6).  Can anyone tell me how to find out whether an HD

  • [svn:osmf:] 14904: Adding file missing from previous commit.

    Revision: 14904 Revision: 14904 Author:   [email protected] Date:     2010-03-22 05:32:49 -0700 (Mon, 22 Mar 2010) Log Message: Adding file missing from previous commit. Added Paths:     osmf/trunk/libs/ChromeLibrary/org/osmf/chrome/hint/     osmf/tr

  • Where Does Lightroom Store  Catalogs, Previews, and Backups?

    1.   By default, where does LR store: a. Catalogs (.lrcat) b. Previews (.lrdata) c. Backups of Catalogs and Previews 2.  Can these locations be changed? 2a. If so, how does one specify where LR will store each of the above? 3. Is there a specific rel

  • Vendor address replication

    Hi all, I created a vendor on ECC system and in Purchase Organization Data I inserted two different addresses (one for vendor, one for purchase order vendor with partner role). When I replicate it to SRM(BBPGETVD txn), in SRM Business Partner data, I

  • Error Loading Tracklog

    I have seen another post to this effect, but in that case, timing info was missing from the file. I am running LR4 on Lion 10.7.3.  I am able to successfully geotag my photos using a gpx file from my Holux M241 and Jeffrey Friedl's Geotagging LR plug