In my html code, I added a button that uses javascript to redirect to chrome://inducebrowserheapcorruption/, but nothing happens and in the console I get:index.html:39 Not allowed to load local resource,I not sure why, so pls help me.
Here's my code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Super—Web</title>
<link rel="icon" href="./icon/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="./custom.css">
<link rel="stylesheet" href="./Privacy Policy/PP-style.css">
<script scr="file:///C:/Users/tee_c/Projects/Super-Web/script.js"></script>
</head>
<style>
body {background-color: powderblue;}
body {border: 3px solid rgb(35, 146, 173);}
body {padding-block-end: 55%;}
</style>
<script>
function DR() {
alert("Instructions:
write download.{lambda}:PGAUvm after the pre-written content.
and paste it before pre-written content.");
window.location.replace("mailto:PGAU.email@gmail.com?subject=auto_DOWNLOAD&body=._END");
}
</script>
<body onload="alert('Welcome,User!')">
<div class="header">
<h1 style="color:rgb(76, 4, 84)">Super Web</h1>
<p>The ultimate website for all pepole.</p>
</div>
<div class="hvAb">
<p id="nice-text">
HSuper⚡∞Web:<br>The website with tools and games.No copyright on any images,videos,tools,games,assets etc...By teeCJ.
</p>
<table>
</table>
</div>
<div class="LR-center">
<button class="button TSbtn" onclick="DR()">Download PGAUvm</button>
<button class="button TSbtn" onclick="window.location.assign('chrome://inducebrowserheapcorruption');throw 'Aborting, redirecting you.';">Don't click this</button>
</div>
<div style="background-color:pink;width:1200px;height:600px;">
<div style="background-color:rgb(113, 166, 173);width:1000px;height:500px;">
<div style="background-color:rgb(208, 243, 111);width:800px;height:400px;">
<div style="background-color:rgb(76, 71, 145);width:600px;height:300px;">
<div style="background-color:green;width:400px;height:200px;">
<h3 class="RB">Rainbow</h3>
<p class="RB-text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem voluptatum doloremque.
</p>
</div>
</div>
</div>
</div>
<h4>A@!#()</h4>
</div>
<div class="wrap">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</body>
</html>
Don't read this section following.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.