Answers for "What are the decodeURI() and encodeURI()"

1

What are the decodeURI() and encodeURI()

<script>
	var uri="my test.asp?name=ståle&car=saab";

	document.write(encodeURI(uri)+ "<br>");

	document.write(decodeURI(uri));
</script>

//output will be
my%20test.asp?name=st%C3%A5le&car=saab
my test.asp?name=ståle&car=saab
Posted by: Guest on August-02-2020

Code answers related to "What are the decodeURI() and encodeURI()"

Code answers related to "Javascript"

Browse Popular Code Answers by Language