You will always have problems with IE whenever you ask plain javaScript questions here.
If you ask a jQuery question, and mention that it’s for IE, you might get a usable answer.
jQuery does not parse searchParams. You need to do it yourself with new URL or regular expressions or some other found code.
I know I wrote that exact code many years ago on this forum. You can search for it, or search the
internet.
JΛ̊KE