AnsweredAssumed Answered

Capture browser type within Script box on Catalog form

Question asked by ElwynnMartin on Feb 22, 2019
Latest reply on Feb 25, 2019 by Louis_van_Amelsfort

I'm trying to use JavaScript within the the script box on a catalog form to capture the browser type of the user. 

 

I found this simple little code snippet  that successfully alerts the browser type when executed in chrome's console, but I haven't been able to figure out how to get it to work in the context of a catalog script box.

 

var browser_type = Object.keys($.browser)[0];
alert(browser_type);

 

I've tried various combinations of the $() basic syntax that catalog uses and a few JSON methods but the only results I've gotten have been either [object Object] or nothing at all.

 

Any ideas or knowledge on the subject would be appreciated!

Outcomes