skip to Main Content

I have created 4 div boxes in html but don’t know why an additional box is automatically created although i have not created it in the code and when i inspect that stuff
i got this thing <div id="crx-root-main"></div>
Can Somebody tell me why this is happening
enter image description here
enter image description here

I have created 4 div boxes in html but don’t know why an additional box is automatically created although i have not created it in the code and when i inspect that stuff
i got this thing <div id="crx-root-main"></div>
Can Somebody tell me why this is happening
enter image description here
enter image description here

2

Answers


  1. I can not see any extra boxes!! The div you are asking for indicates a Chrome extension.

    Login or Signup to reply.
  2. Code injected by live-server
    

    means that the code was injected by live server:

    enter image description here

    So, if you dislike that injected code, then you could ask the sysadmin to avoid injecting that into your code. Or change the service you are using. A sad solution would be to actively remove it when the page load finished, like

    window.addEventListener("load", () => document.getElementById("crx-root-main").remove());
    <h1> placing tag</h1>
    <br>
    <!-- I presume you do not have a separate "box" and "1" class -->
    <div class="box-1">box1</div>
    <div class="box-2">box2</div>
    <div class="box-3">box3</div>
    <div class="box-4">box4</div>
    <div id="crx-root-main">abc</div>

    Please try to resolve this in a manner that not ends up running the hack above.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search