Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 402
  • Last Modified:

XSLT open new window.

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
Blowfelt82
Asked:
Blowfelt82
  • 2
1 Solution
 
JtRCommented:
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
 
JtRCommented:
put the <script>-block into your generated html code and then build an <a onclick="OpenWin(Address)" ...>..</a>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now