How to make a link open in a new window where I can control size and functions

mas017 wrote on 8/2/2015, 4:30 PM

I have tried using common Javascript code in the Open Link section of XARA to make a link open in a new browser window that I can control

Below  is they type of command I have used for years with no problems
(for example check out the FORUM and BLOG buttons at this site )

www.highpointproducts.com

But for some reason, it will not work with XARA

Help
I want links to open in new windows that I control the size of .....


javascript:popupwnd('http://highpoint.typepad.com','yes','yes','yes','yes','yes','yes','','','800','600')

Comments

johnebaker wrote on 8/6/2015, 8:32 AM

Hi

Presumably you have this script :

<script language="JavaScript" type="text/javascript">
<!--
function popupwnd(url, tool, menu, loc, scroll, resize, status, left, top, width, height)
{
   OpenWin = this.open(url, "PopupWindow", "toolbar=" + tool + ",menubar=" + menu + ",location=" + loc + ",scrollbars=" + scroll + ",resizable=" + resize + ",status=" + status + ",left=" + left + ",top=" + top + ",width=" + width + ",height=" + height);
}
// -->
</script>

also in the same page.

If you do not, then the function call will not work.

A simpler method is as shown here.

HTH

John EB

Last changed by johnebaker on 8/6/2015, 8:32 AM, changed a total of 1 times.

VPX 16, Movie Studio 2025, and earlier versions 2015 and 2016, Music Maker Premium 2024.

PC - running Windows 11 23H2 Professional on Intel i7-8700K 3.2 GHz, 16GB RAM, RTX 2060 6GB 192-bit GDDR6, 1 x 1Tb Sabrent NVME SSD (OS and programs), 2 x 4TB (Data) internal HDD + 1TB internal SSD (Work disc), + 6 ext backup HDDs.

Laptop - Lenovo Legion 5i Phantom - running Windows 11 23H2 on Intel Core i7-10750H, 16GB DDR4-SDRAM, 512GB SSD, 43.9 cm screen Full HD 1920 x 1080, Intel UHD 630 iGPU and NVIDIA GeForce RTX 2060 (6GB GDDR6)

Sony FDR-AX53e Video camera, DJI Osmo Action 3 and Sony HDR-AS30V Sports cams.