J
jodleren
Hi
Pretty simple, I am sure. I have a small JS script, which is
function OpenSomething(input)
{
win3=window.open("some_file.php?info=" +
input,"mywin","width=500,height=600,scrollbars=yes,resizable=yes");
return false;
}
The problem is that "input" comes from a text box, and can contain
ampersand.
All I need is to replace ampersand with %26, and do the same in PHP
(which I know how to do).
But how do I do that in JS?
WBR
Sonnich
Pretty simple, I am sure. I have a small JS script, which is
function OpenSomething(input)
{
win3=window.open("some_file.php?info=" +
input,"mywin","width=500,height=600,scrollbars=yes,resizable=yes");
return false;
}
The problem is that "input" comes from a text box, and can contain
ampersand.
All I need is to replace ampersand with %26, and do the same in PHP
(which I know how to do).
But how do I do that in JS?
WBR
Sonnich