JavaScript getDate
Javascript Infinity
JavaScript undefined
JavaScript eval function
JavaScript uneval function
Javascript isFinite function
Javascript isNaN functions
Javascript parseFloat functions
Javascript parseInt functions
Javascript decodeURI functions
Javascript decodeURIComponent functions
Javascript encodeURI functions
Javascript encodeURIComponent functions
Javascript escape functions
Javascript unescape functions
Javascript Objects
Javascript Number
JavaScript Date object
JavaScript Math Object
JavaScript Array
Javascript Comments
JavaScript Data types
JavaScript special characters
JavaScript if condition
Javascript For Loop
JavaScript While Statement
JavaScript Switch Case statement
JavaScript Exception handling
JavaScript do while statement
JavaScript label statement
JavaScript break statement
JavaScript continue statement
JavaScript for in statement
JavaScript function
JavaScript Assignment operators
JavaScript Comparison operators
Javascript Arithmetic operators
JavaScript Bitwise operators
JavaScript Logical operators
JavaScript String operators
JavaScript Conditional operators
JavaScript typeof operator
JavaScript void operator
JavaScript toExponential functional
JavaScript toFixed function
JavaScript toPrecision function
JavaScript charCodeAt function
JavaScript concat function
JavaScript fromCharCode function
JavaScript indexOf function
JavaScript lastIndexOf function
JavaScript localeCompare function
JavaScript match function
JavaScript replace function
JavaScript search function
Javascript slice function
JavaScript split function
JavaScript substr function
JavaScript substring function
JavaScript toLocaleLowerCase function
JavaScript toLocaleUpperCase function
Javascript toString function
JavaScript trim function
JavaScript valueOf function
JavaScript pop function
JavaScript push function
JavaScript shift function
JavaScript unshift function
JavaScript sort function
JavaScript reverse function
2 Example(s) of Javascript decodeURI functions
Description :
decodeURI
function will decode the URI and return the decode string. See the code snippet for decodeURI
function.
Javascript decodeURI functions Example - 1
<!DOCTYPE html>
<html>
<head>
<title>Welcome to LearnKode - A code learning platform</title>
</head>
<body>
<button onclick="decryptUrl()">Decode URI</button>
<p id="sample"></p>
<script>
function decryptUrl() {
var uri = "leanKode.com?name=michael&car=voughan";
var enc = encodeURI(uri);
var dec = decodeURI(enc);
var result = "Encoded URI: " + enc + "<br>" + "Decoded URI: " + dec;
document.getElementById("sample").innerHTML = result;
}
</script>
</body>
</html>
Description :
%20 is a replacement of spaces and decodeURI
function will convert all such code to URI. http://learnkode.com/Examples/Javascript/Javascript%20decodeURI%20functions will get converted to http://learnkode.com/Examples/Javascript/Javascript decodeURI functions.
Javascript decodeURI functions Example - 2
<!DOCTYPE html>
<html>
<head>
<title>Welcome to LearnKode - A code learning platform</title>
</head>
<body>
<button onclick="decryptUrl()">decodeURI Fucntionality</button>
<p id="sample"></p>
<script>
function decryptUrl() {
var dec = decodeURI("http://learnkode.com/Examples/Javascript/Javascript%20decodeURI%20functions");
document.getElementById("sample").innerHTML = dec;
}
</script>
</body>
</html>
Please enable JavaScript to view the comments powered by Disqus.