Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Open Link in a New Window

Posted on 2013-02-05
6
Medium Priority
?
496 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 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 1000 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 1000 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
Industry Leaders: 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!

 
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 84

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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

972 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