When the user do a search, I'm passing the user's search word as the string to direct a user to a new page. My question is how to create a valid url (e.g. prevent spaces on the string)?
It's important that the next page is able to identify where search word spaces were from the string
(if there were any spaces).
This is what I have so far:
window.location.href = "/furniture/info.html?furn="+user search word