open url in new tab in background
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: open url in new tab in background

  1. #1
    Join Date
    Jun 2001
    Location
    Denmark
    Posts
    446

    Question open url in new tab in background

    I have a web app, where when you click on a button, a web page is sometimes (depending on other choices in the web page) generated. I want to be able to open the newly generated web page in a new tab in the browser, but it must be in the background (so the original page remains in focus).

    How to do that?

    Thanks in advance.

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,090

    Re: open url in new tab in background

    There is a setting you could use ( in HTML terms )

    You see, a link's HTML code looks like :
    PHP Code:
    <A HREF "Whatever URL">Text to be displayed</A
    If you knew that already, then we're halfway

    You should look at the TARGET attribute of the A tag, which will accomplish what you need :

    http://www.w3schools.com/tags/tag_a.asp

    I hope it helps

  3. #3
    Join Date
    Jun 2001
    Location
    Denmark
    Posts
    446

    Re: open url in new tab in background

    Ah...I meant to do it programatically, in the codebehind

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center