html template

In html template page i have next string



<body class="fixed-sn white-skin">

but after i run my application with pure form i have next html code in result page


<body style="background-color: rgb(255, 255, 255);" zindex="0">

how i cant disable modification my template page in runtime?

hmm, if i set ElementClassName = fixed-sn white-skin

result html <body style="" zindex="0" class="fixed-sn white-skin">

Do you change the project HTML file BODY tag or the form's HTML file BODY tag?

no, default index.htm without changes

[code]

Your browser does not support JavaScript! TMS Web Project

in Unit1.html


<!DOCTYPE html>
<html lang="en">


<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Material Design Bootstrap</title>
    <!-- Font Awesome -->
   <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <!-- Material Design Bootstrap -->
    <link rel="stylesheet" href="css/mdb.min.css">


    <!-- Your custom styles (optional) -->
    <style>


    </style>
</head>


<body class="fixed-sn white-skin">


Unit1.pas


unit Unit1;


interface


uses
  System.SysUtils, System.Classes, JS, Web, WEBLib.Graphics, WEBLib.Controls,
  WEBLib.Forms, WEBLib.Dialogs, Vcl.Controls, WEBLib.WebCtrls;


type
  TForm1 = class(TWebForm)
    ancDashboard1: TWebHTMLAnchor;
    procedure ancDashboard1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;


var
  Form1: TForm1;


implementation


{$R *.dfm}


procedure TForm1.ancDashboard1Click(Sender: TObject);
begin
  ShowMessage('ok');
end;


end.

[/code]

The body of the project HTML is what is used, so please add the class to the main project HTML:


<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta $(ThemeColor)>
    <noscript>Your browser does not support JavaScript!</noscript>
    <link rel="icon" href="data:;base64,=">
    <meta $(Manifest)>
    <title>TMS Web Project</title>
    <script type="text/javascript" src="$(ProjectName).js"></script>
    <style>
    </style>
  </head>
  <body class="fixed-sn white-skin">
<meta $(BodyParameters)>
  </body>
  <script type="text/javascript">
    rtl.run();
  </script>
</html>