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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 397
  • 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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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