Forum Discussion
ChrisSwirtz2
6 years agoQrew Cadet
Thanks Justin, that is kind of what I figured. Do you happen to know what that Java script might looking like to make this work? I have not yet learned that craft.
------------------------------
Chris Swirtz
------------------------------
------------------------------
Chris Swirtz
------------------------------
RyanStanford1
6 years agoQrew Captain
Quick GoogleFoo here... if you add features/parameters to a window.open() JavaScript call, it forces it to open as a new window:
var strWindowFeatures = "height=0,width=0,scrollbars=yes,status=yes";
var URL = "https://www.google.com";
var win = window.open(URL, "_blank", strWindowFeatures);
You can find more information regarding WindowFeatures here: https://developer.mozilla.org/en-US/docs/Web/API/Window/open#Window_features
------------------------------
Ryan Stanford
------------------------------
var strWindowFeatures = "height=0,width=0,scrollbars=yes,status=yes";
var URL = "https://www.google.com";
var win = window.open(URL, "_blank", strWindowFeatures);
You can find more information regarding WindowFeatures here: https://developer.mozilla.org/en-US/docs/Web/API/Window/open#Window_features
------------------------------
Ryan Stanford
------------------------------
- ChrisSwirtz26 years agoQrew CadetThanks Ryan! I am getting and error message originating on the 3rd line between the words window and open?
------------------------------
Chris Swirtz
------------------------------- RyanStanford16 years agoQrew CaptainWhere are you trying to inject the javascript itself? a formula field or a code page?
------------------------------
Ryan Stanford
------------------------------- ChrisSwirtz26 years agoQrew CadetA formula field, which now I am guessing is wrong.
------------------------------
Chris Swirtz
------------------------------