One of the projects I am working on, I am developing a JSOM solution to do certain things. Part of the solution I have to read the "ID" that appears on the SharePoint list's edit form (in the browser url). Please see below screenshot.
As seen in the above screenshot, I want to read that ID value which equals to 4 and based on that value i have to further call other functions. I googled a lot but could not find a way to read that ID. Can someone please help me on this, thanks. I am working with SharePoint/office 365. Please provide code for this using JS or Jquery.
Thanks in advance.