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

Similar Messages

  • 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

  • How to Open External Links in a New Tab

    I want links in web pages to open in the current tab so I have browser.link.open_newwindow=1. But how do I make links from extenal applications open in a new tab?

    Try setting the following to 3, not really sure if preference was actually removed or just won't accept 2, the intent was that the two variables be the same (I think)
    browser.link.open_external -- Where to open links sent to the browser from an external application
    * 2 (default in SeaMonkey): Opens external links in a new window
    * 3 (default in Firefox): Opens external links in a new tab in the most recent window
    * 1 (or anything else): Opens external links in current window
    Note: In Firefox 2 and above, via “Tools → Options → Tabs → New pages should be opened in:” (same as browser.link. open_newwindow)
    Pref removed from Firefox 3.5

  • 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.

  • Do NOT want to open link in a new browser window - iWeb '09

    I do not want links that navigate around my website to open a new browser window every time. Right now, for example, From my main page, I click a link to a secondary page, it opens it in a new window, I then click the link back to my main page, and it opens in a new window. I now have 3 windows open.
    I am not using the navigation bar as it set ups with iWeb (I have it hidden). I am using hyperlinks I attached to text boxes. Would this problem be remedied if I was using the navigation bar? If so, is there anyway to edit the appearance of the navigation bar and it's location on the page?
    Primarily though, I would like my text hyperlinks to just navigate my page and not open in new windows.
    Thanks!

    And that's the way it should be.
    If you look at this page about navigation you'll see that the main navigation uses eternal links and the sub navigation internal ones....
    http://www.iwebformusicians.com/WebMusic/Navigation.html
    Try the troubleshooting steps under "Fix iWeb" here.....
    http://www.iwebformusicians.com/WebMusic/iWebTips.html

  • Link to a New Browser window

    Anybody knows of an easy way to open a report through the link on another report into a new browser window by default? Thanks.

    hi you can do this in a couple of ways
    create a format trigger on the column that you want to use as the link :-
    function F_organizationFormatTrigger return boolean is
    begin
    srw.set_hyperlink('http://' || :BASEURL || '/anotherjsp.jsp?REPORT_ID=1&destype=cache&desformat=' || :desformat || '&WHERECLS=' || :DRILLCLS || '&DRILLVALUE=' || chr(39) || :column1 || ' ' || chr(39) );
    srw.set_hyperlink_attrs('target=_blank');
    return (TRUE);
    end;
    or you can put it in the Web Settings piece of the Property Inspector for the column that you want to link from . there is a paramter for hyperlink and hyperlink destination.
    hope this helps

  • Linking to one new browser window?

    Can anyone tell me how to open multiple pdfs from one page in
    the same new browser window instead of opening multiple windows in
    Dreamweaver 8 (MAC)?

    You would not be able to do this by linking directly to the
    PDF. This is
    what I said in an earlier post.
    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
    ==================
    "thephitt" <[email protected]> wrote in
    message
    news:fn31c9$7l4$[email protected]..
    >I am able to get the pdfs displaying in the same window
    and coming to the
    >front
    > by using the OpenBrowser Window behavior EXCEPT the
    first link (any link)
    > I
    > choose gives me a page in IE (PC) stating "The Web page
    can not be
    > displayed".
    > If I choose the same link again it will display on that
    page and all
    > others
    > that have the same behavior. Here is an example of the
    code to open the
    > link.
    >
    > <a href="pdfs/winter_2007.pdf" target="feapdf"
    class="style1"><u
    >
    onclick="MM_openBrWindow('pdf:blank','feapdf','')">Current
    Newsletter
    > </a>
    >
    > URL to display = pdf:blank
    > window name = feapdf
    > target set to feapdf
    >
    > Again, works fine on the MAC but this issue occurs on
    the PC using IE
    >

  • 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.

  • 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.

  • 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

  • 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

  • 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 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.

Maybe you are looking for

  • Java.lang.NoClassDefFoundError: com/sapportals/wcm/util/pcr/PortalComponent

    Hi All, I am getting the following Portal Runtime error while accessing the KM Content on Content Administration. In the error log following class is involved com.sapportals.wcm.portal.component.base.ControllerComponent The error caused by: Caused by

  • How can I tell iTunes to NOT convert certain files from wma format?

    I just got an iPod classic, and downloaded iTunes and it automatically started adding all my music. I have almost 5000 songs that are in wma format, and it started converting them all. Then after it got almost 2000 songs finished, it just stopped. Fo

  • Add a flag column in the Query based on Cancel date

    hi Guys, I have a Characterstic object 0canceldate and it gets the cancellation date of the sales order. Based on that date i need to add a column in the report like if 0canceldate has ahappened or populate then show Yes or No in the coumn like a fla

  • What Are the Different Versions, Models, etc. of iPhones?

    Hey- I want to get some gifts for friends with iPhones. One just got the latest one, and one has the first one that came out but just got it too. if I want to get a gel type of case does it matter that I know which iPhone they have? How many differen

  • Cleaning screen at SQL*PLUS Worksheet

    Is there any simple command, macro or magical trick to clean the lower screen? (the one were you can not write and displays the data from your selects, prompts, ORA-errors, etc...) thanks