Thanks for this, I have added this in the head of my template's startpage.pstpl:
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string'
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes'
;
return false;
}
//-->
</SCRIPT>
and in the body of my privacy.pstpl file I added:
<A HREF="www.mysurveyaddress/privacy.htm"
onClick="return popup(this, 'privacy'
">Privacy</A>
and it works well, creating a pop-up.
However, when I added the same popup call on my question pages it does not give a pop-up, but simply opens a new window. Why does this happen? The SCRIPT code still appears to be in the head of my question template.
Thanks so much for any help.
PS: Subsequently I have tried the wysiwyg editor's own popup link function but it also does not work, it just opens a new window.