const downloadBtn = document.getElementById("downloadBtn"); const videoUrlInput = document.getElementById("videoUrl"); const resultDiv = document.getElementById("result"); downloadBtn.addEventListener("click", async () => { const videoUrl = videoUrlInput.value; if (!videoUrl) { alert("Please enter a valid video URL."); return; } // You need to implement the logic to fetch and display video information here // Example: You can use fetch or XMLHttpRequest to retrieve the video data // and update the resultDiv with the video information. resultDiv.innerHTML = "Video Information: ..."; // Update this line resultDiv.style.display = "block"; });
body { font-family: Arial, sans-serif; margin: 0; padding: 0; } header { background-color: #007bff; color: #fff; text-align: center; padding: 10px; } main { max-width: 600px; margin: 20px auto; padding: 20px; border: 1px solid #ccc; border-radius: 5px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); } input[type="text"] { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 3px; } button { background-color: #007bff; color: #fff; border: none; padding: 10px 20px; border-radius: 3px; cursor: pointer; } #result { margin-top: 20px; display: none; border: 1px solid #ccc; padding: 10px; border-radius: 5px; background-color: #f7f7f7; }
Facebook Video Downloader

Facebook Video Downloader