Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:18
Launching separate target window
Poster: Stephen Bradshaw
Dated: Wednesday November 6 2002 - 0:41:46 GMT
Hi,
Is it possible to launch a separate target browser window?
I am using the menu to point to individual pdf files, but want a separate broswer window to be created for each pdf.
Thanks in advance
Poster: kevin3442
Dated: Wednesday November 6 2002 - 5:10:56 GMT
Hi Stephen,
You may find what you're looking for here. You can either specify a target= in your menu item's URL, or you can use a small javascript function to open a new window. I prefer the javascript approach, because it gives you control over many of the new window's properties (size, position, scrollbars, etc.). You could pass the .pdf file name as a parameter to this function, then set the new window's location.href to open the file.
Hope that helps,
Kevin