Solved

Open Link in a New Window

Posted on 2013-02-05
6
487 Views
Last Modified: 2013-02-06
Is there anyway to make this line of code open the link in a new window? the users will be using Internet Exploter.

<center><p> <b> <i>To calculate a date <a href="http://tnex-x-psrf/cflow/query/assign_page.php">click here</a></i></b>.</p>

Open in new window


Thanks!
0
Comment
Question by:wantabe2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
ID: 38856622
to "open" a link in a new window, use the target keyword:
<center><p> <b> <i>To calculate a date <a target="_blank" href="http://tnex-x-psrf/cflow/query/assign_page.php">click here</a></i></b>.</p>

Open in new window

0
 
LVL 23

Assisted Solution

by:tailoreddigital
tailoreddigital earned 250 total points
ID: 38856630
How about,

<center><p> <b> <i>To calculate a date <a href="http://tnex-x-psrf/cflow/query/assign_page.php" target="_blank">click here</a></i></b>.</p>



http://www.w3schools.com/tags/att_a_target.asp
0
 
LVL 15

Author Comment

by:wantabe2
ID: 38856640
That opened it in a new tab...is there a way to open it in a new browser session (window)?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 38856669
I don't think you can "force" a "new window" from the html code...
and I think, that should remain the user's "choice"?!
why do you want a new window? if it's for a new "session", you need to pass some info to the page to clear session information ...
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 38856671
Opening in a 'tab' or 'window' is a user choice on most browsers.  What do you mean by "new browser session"?  If you are wanting to open a new 'session' in PHP, that isn't going to do it because the session cookie is shared by all open windows of a browser.  You would have to open a Different browser to open a different PHP session.
0
 
LVL 15

Author Comment

by:wantabe2
ID: 38856691
Well...at this time the users are right clicking the link & choosing "open in a new window". I was just trying streamline it a little. I guess they'll just keep doing it as they've been doing it.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question