I am trying to open a pop-up window using window.open. I would like the scrollbars to appear only if necessary. Unfortunately, in Safari, the scrollbars do not show up unless I include scrollbars=1 in the code.
However, this also causes horizontal scrollbars to display unnecessarily. Is there a way to specify,
"Only show horizontal scrollbars when needed" for the pop-up window?
(This may involve utilizing various combinations of options within window.open and adjusting the overflow CSS property.)