Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


XSL Editor Parameters - to open a max size new window

Posted on 2013-01-30
Medium Priority
Last Modified: 2013-01-30
Hi experts,

<xsl:when test="@ContentType='Process'">
<a href="{@ID}&amp;Source=" target="_blank">
<xsl:value-of select="@FileLeafRef"/>

However the window appears small. How do I ensure the window is max size- What do I need to add to the a href?
Question by:sharepoint2013
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
  • 5
  • 3
LVL 50
ID: 38836797

forcing a new window to maximise is not a good idea. Most people would be quite cross if the control of the new window size was overridden. With current monitor sizes and screen resolutions, a maximised window often makes it harder to digest the content.

Having said that, it is possible. You need some javascript in the file and then include a call to that js function in the link.

There are two examples in this question (the accepted solutions)

cheers, teylyn

Author Comment

ID: 38837822
Saw it. would it be possible to put the <script> tag in the xsl editor?

How do i integrate it into the onclick line without the <script> tag? eg:


onClick="return !,,'width=1024,height=250')"


Is this fine?
LVL 50

Accepted Solution

Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 2000 total points
ID: 38837946
You can put the script anywhere in the page, for example just above the link tag.

<xsl:when test="@ContentType='Process'">
						  function winpop(url){
						  var w = screen.width;
    						var h = screen.height;
						    popup =,&apos;popup&apos;,&apos;screenX=0,screenY=0,left=0,top=0,width=&apos;+w+&apos;,height=&apos;+h);
						<a href="{@ID}&amp;Source=" onClick="winpop(this.href);return false;">
							<xsl:value-of select="@FileLeafRef"/>

Open in new window

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.


Author Comment

ID: 38838055
Sorry for my lack of knowledge.

Where do I put the width and height size?

Author Comment

ID: 38838061
Sorry I tried and it works perfect!
LVL 50
ID: 38838063
You don't.

Because you don't know what they are. Each user can have a different screen resolution.

Javascript will calculate them. The script works as is. I copied it from my test site.

Author Comment

ID: 38838294
The problem is, the new window does not have back forward buttons..

i inserted toolbar=yes and status=yes and location=yes

Still no effrt.

Author Comment

ID: 38838305
nvm i fixed it

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

688 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