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!