M
M
Mors Superberg2018-02-07 18:12:16
JavaScript
Mors Superberg, 2018-02-07 18:12:16

How to replace the page content before loading the page?

Hello people! There is an extension, how can I replace the page content with js before it is loaded, for example, just display "hello world" in the body? At the same time, without loading the main content. That is, in fact, kill the previous page and create your own. Thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2018-02-07
@aM-aM

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    
</head>
<body>
    content
    <script>
        document.body.innerHTML = '';    
    </script>
</body>
</html>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question