This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Copy From TextFIeld</title> | |
| </head> | |
| <body> | |
| <input id="name" type="text" /> | |
| <button id="copy">Copy</button> | |
| </body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function check(url){ | |
| let cors = "https://cors-anywhere.herokuapp.com/"; //This API enables cross-origin requests to anywhere. | |
| let checkUrl= cors+url; //Merge cors and checking website url to avoid the cross-origin requests error | |
| let response = await fetch(checkUrl); //JavaScript can send network requests to the server | |
| if (response.ok) { | |
| alert("Website Support On Your Network"); // if HTTP-status is 200-299 | |
| } else { | |
| alert("Website Not Support On Your Network"); |
NewerOlder