Page 1 of 1

Sticky Layer onclick link can't specify target

Posted: Sun Nov 15, 2020 10:05 pm
by developer
I have a sticky layer that floats alongside a page. When the user clicks it, an onclick event fires which uses the link option and opens an order form, but not in a new window because I can't select a target.

In the link specification as soon as I specify the file to open, the target selector highlights with a drop-down, but the selector does not activate, so I can't select a target.

I've tried to workaround by editing the html, but the target specifier is outside the return and there is no way to get it in the proper poistion in the script flow.

So to recreate, make a sticky layer and specify an onclick event with a link to a file.

Thanks in advance for your help!

Re: Sticky Layer onclick link can't specify target

Posted: Mon Nov 16, 2020 8:00 am
by Pablo
A link triggered via event cannot have a target window, because events use JavaScript instead of an HTML anchor.

Also note that the 'target' property in the event window is for specifying the target object for events. It is not relevant for links, so that is why it is disabled.