JavaScripts opening new windows or tabs
Posted: Thu Apr 21, 2016 9:38 am
Hi all,
The linking component of our Ex Libris library system, SFX, uses JavaScript to open a new window with the linked content. The HTML of the page says
<input class="button" type="button" style="background-image:url(/sfxlcl41/img/simplified_template1/general/default/button_bg.gif);" onclick="javascript:window.open('https://ab.cdef.ghijk.uk/welcome.html?ark:/81055/vdc_100026716572.0x000001','newwin','toolbar=yes,location=yes,directories=yes,buttons=yes,
status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=700');newwin.focus;" value="Go" title="Navigate to target in new window">
So PWB is doing what our linking system is telling it and opening a new window 600 pixels wide by 700 high, however IE running natively seems to open a new tab instead. Is there anyway to get PWB to follow the IE behaviour and open a tab rather than a window? Failing that, is there any way to say that such JavaScript opened windows must follow the [SecondWindow] size settings?
Thanks,
Tim
The linking component of our Ex Libris library system, SFX, uses JavaScript to open a new window with the linked content. The HTML of the page says
<input class="button" type="button" style="background-image:url(/sfxlcl41/img/simplified_template1/general/default/button_bg.gif);" onclick="javascript:window.open('https://ab.cdef.ghijk.uk/welcome.html?ark:/81055/vdc_100026716572.0x000001','newwin','toolbar=yes,location=yes,directories=yes,buttons=yes,
status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=700');newwin.focus;" value="Go" title="Navigate to target in new window">
So PWB is doing what our linking system is telling it and opening a new window 600 pixels wide by 700 high, however IE running natively seems to open a new tab instead. Is there anyway to get PWB to follow the IE behaviour and open a tab rather than a window? Failing that, is there any way to say that such JavaScript opened windows must follow the [SecondWindow] size settings?
Thanks,
Tim