2

I am trying print my page automatically using jQuery.But problem is red dot circle appear.So how to remove them ?3

This is my html file look like

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
   
    <title>Document</title>
</head>
<body>
<div>
    Hello From Other side
</div>



<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

<script>
    window.onload = function () {
        window.print();
    }
</script>
</body>
</html>

So i want to remove that red dot circle part like url name and title Name.

enter image description here

Beginner Coder
  • 208
  • 3
  • 11

2 Answers2

2

Please Try this from this link How to remove the URL from the printing page?

   <style media="print">
        @page {
            size: auto;
            margin: 0;
        }
    </style>
0

its a browser default behaviour. you should unchecked the header checkbox

enter image description here

prasanth
  • 22,145
  • 4
  • 29
  • 53