Solved

Open Link in a New Window

Posted on 2013-02-05
6
477 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
6 Comments
 
LVL 142

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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 142

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 82

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now