Hi,
alert(window.location.href/&name=" + escape(name_var) + "&id=" + escape(id_var));
thanks
Hi,
alert(window.location.href/&name=" + escape(name_var) + "&id=" + escape(id_var));
thanks
No, it's not correct.
alert(window.location.href + "&name=" + encodeURIComponent(name_var) + "&id=" + encodeURIComponent(id_var));
/ that follows window.location.href+ - myString + "more string"escape is deprecated, use encodeURI() and encodeURIComponent()