-4

i need to get the product id from an url into a var

https://instrumentall.md/ro/6167922/

can someone help me please?

1 Answers1

0

In JavaScript use window.location.href to get the value of the url. Than process it as a normal string.