I need help removing a specific part from a URL string, which looks like this: http://.....?page=1
. I am aware that the code "
document.URL.replace("?page=[0-9]", "")
" does not work, so I am curious to learn how to accomplish this task correctly.
Thank you for your assistance.