How i can show a Window with html message? / Client Script

How i can show a Window with html message? / Client Script

Hi Team

   I want to show a message to the user but a html table code, similar to the following source code:

  1. const winHtml = `<!DOCTYPE html>
  2.     <html>
  3.         <head>
  4.             <title>Compración de Datos</title>
  5.         </head>
  6.         <body>
  7.             <style type="text/css">
  8. .tg  {border-collapse:collapse;border-spacing:0;}
  9. .tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
  10.   overflow:hidden;padding:10px 5px;word-break:normal;}
  11. .tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
  12.   font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
  13. .tg .tg-0lax{text-align:left;vertical-align:top}
  14. </style>
  15. <table class="tg">
  16. <thead>
  17.   <tr>
  18.     <th class="tg-0lax">A1</th>
  19.     <th class="tg-0lax">A2</th>
  20.     <th class="tg-0lax">A3</th>
  21.   </tr>
  22. </thead>
  23. <tbody>
  24.   <tr>
  25.     <td class="tg-0lax">B1</td>
  26.     <td class="tg-0lax">B2</td>
  27.     <td class="tg-0lax">B3</td>
  28.   </tr>
  29.   <tr>
  30.     <td class="tg-0lax">C1</td>
  31.     <td class="tg-0lax">C2</td>
  32.     <td class="tg-0lax">C3</td>
  33.   </tr>
  34. </tbody>
  35. </table>
  36.         </body>
  37.     </html>`;

  38. const winUrl = URL.createObjectURL(
  39.     new Blob([winHtml], { type: "text/html" })
  40. );

  41. const win = window.open(
  42.     winUrl,
  43.     "win",
  44.     `width=800,height=400,screenX=200,screenY=200`
  45. );

  I can't find some function for to do this task on client script.

Regards,
Pablo