Please see below screenshot.
I would like to read/retrieve the ctype that appears in the browser url. I guess this is doable using regular expression but I am not really good with it so can someone please help with the JSOM code to read ctype from the browser url since I am working with OFfice 365/SharePoint online.
Your help will be greatly appreciated. Thanks in advance.