I need to pass some values from a textbox on a certain page, as a query string, and then receive it in another page.
The thing is want to send the escape characters for new line of the textbox (\r\n)
button.onclick = function () {
window.open('receiver.aspx?Device=' +
document.getElementById('myTextbox').value);
};
Is that possible/allowed?
Use
encodeURIComponent:It: