Opening a link in a defined window size

Hi,

I want to create my own share button in illustrator and then link it to the share url that i get from the standard wix share button.

the issue is that when i create an onclick function and set the target to “_blank” it opens a new window the size of the entire browser, and i want it to open in the size that fits the share window (same size that the standard share button window opens in).

TL;DR
so i would like to know if it is possible in the code panel to define a fixed height and width for the “_blank” window to open in?

You might be able to use a Modal Window .