File size: 1,385 Bytes
3727919
 
 
 
c3e8e9d
3727919
 
aa4140a
c3e8e9d
3727919
 
 
 
c3e8e9d
 
aa4140a
c3e8e9d
aa4140a
c3e8e9d
3727919
 
c3e8e9d
 
aa4140a
 
c3e8e9d
 
 
 
 
aa4140a
 
 
 
 
c3e8e9d
27d431a
c3e8e9d
27d431a
 
c3e8e9d
 
3727919
 
 
28247f8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Open Same Website Multiple Times</title>
  <style>
    body { font-family: sans-serif; padding: 20px; }
    textarea, input { width: 100%; margin-top: 10px; }
    textarea { height: 60px; }
    button { padding: 10px 20px; margin-top: 10px; font-size: 16px; }
  </style>
</head>
<body>
  <h2>Open Website Multiple Times</h2>
  <p>Enter a single URL (include https://):</p>
  <textarea id="urls" placeholder="https://example.com"></textarea>
  <p>Number of tabs to open:</p>
  <input type="number" id="limit" placeholder="e.g. 5" min="1"><br>
  <button onclick="openWebsiteMultipleTimes()">Open Website</button>

  <script>
    function openWebsiteMultipleTimes() {
      const urlInput = document.getElementById("urls").value.trim();
      const limit = parseInt(document.getElementById("limit").value, 10);

      if (!urlInput) {
        alert("Please enter a URL.");
        return;
      }

      if (isNaN(limit) || limit <= 0) {
        alert("Please enter a valid number greater than 0.");
        return;
      }

      const finalUrl = urlInput.startsWith("http") ? urlInput : "https://" + urlInput;

      for (let i = 0; i < limit; i++) {
        setTimeout(() => {
          window.open(finalUrl, '_blank');
        }, i * 300); // delay each open slightly
      }
    }
  </script>
</body>
</html>