Solved

XSLT open new window.

Posted on 2010-08-21
2
391 Views
Last Modified: 2013-11-18
In an XSLT stylesheet I am creating a <a> html tag and using an XSLT attribute to set the href setting of the anchor. This all works as I would expect. However now I need to make the <a> reference open a new window without the search and menu bars. Does anyone know how this can be done, I am assuming I will need javascript?
0
Comment
Question by:Blowfelt82
[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
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
JtR earned 500 total points
ID: 33491225
you need to open it using the javscript window.open() function!

<script type="text/javascript">
function OpenWin(Address) {
  MW = window.open(Address, "Win TItle", "width=300,height=200,locationbar=no,menubar=no,toolbar=no,personalbar=no,");
  MW.focus();
}
</script>
0
 
LVL 3

Expert Comment

by:JtR
ID: 33491229
put the <script>-block into your generated html code and then build an <a onclick="OpenWin(Address)" ...>..</a>
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

717 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