Делаю такую вещь
<!doctype html>
<html>
<head>
</head>
<body>
my page
<script>
let dopp = `<!doctype html>
<html>
<head>
</head>
<body>
new page
</body>
</html>`;
let blob = new Blob([dopp], {type : 'text/html'});
let url = URL.createObjectURL(blob);
let ea = document.createElement('a');
ea.target = '_blank_';
ea.href = url;
ea.click();
</script>
</body>
</html>
Теперь хочу в стр 20 ea.href = url + '?search.str';
Не работает
<!doctype html>
<html>
<head>
</head>
<body>
my page
<script>
let dopp = `<!doctype html>
<html>
<head>
</head>
<body>
new page
</body>
</html>`;
let blob = new Blob([dopp], {type : 'text/html'});
let url = URL.createObjectURL(blob);
let ea = document.createElement('a');
ea.target = '_blank_';
ea.href = url + '?search.str';
ea.click();
</script>
</body>
</html>
Как ее туда прикрутить?