screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>URL Decode Example</title> </head> <body> <p>Encoded Url : Hello%20World%21</p> <p id="result">Click ButtonResult will be displayed here</p> <button onclick="decodeUrl()">Decode URL</button> <script> function decodeUrl() { // URL-encoded string const encodedString = "Hello%20World%21"; // Decode the URL-encoded string const decodedString = decodeURIComponent(encodedString); // Display the result on the webpage document.getElementById("result").textContent = "Decoded String: " + decodedString; } </script> </body> </html>