diff --git a/html/admin.html b/html/admin.html
index 9908c0a..e875ad0 100755
--- a/html/admin.html
+++ b/html/admin.html
@@ -256,6 +256,10 @@ window.onload = function() {
elements.forEach((element) => {
element.innerText = response.deviceName;
});
+ //device name html page title
+ if (response.deviceName) {
+ document.title = response.deviceName;
+ }
//device ID
const deviceID = response.deviceID.trim().toUpperCase();
const device_ID = document.getElementById("device_ID");
diff --git a/html/database.html b/html/database.html
index 26ecfc4..9ea37e5 100755
--- a/html/database.html
+++ b/html/database.html
@@ -168,6 +168,11 @@ window.onload = function() {
elements.forEach((element) => {
element.innerText = deviceName;
});
+
+ //device name html page title
+ if (response.deviceName) {
+ document.title = response.deviceName;
+ }
},
error: function(xhr, status, error) {
diff --git a/html/index.html b/html/index.html
index 47a7f92..6ea581d 100755
--- a/html/index.html
+++ b/html/index.html
@@ -151,6 +151,11 @@ window.onload = function() {
elements.forEach((element) => {
element.innerText = deviceName;
});
+
+ //device name html page title
+ if (response.deviceName) {
+ document.title = response.deviceName;
+ }
},
error: function(xhr, status, error) {
diff --git a/html/logs.html b/html/logs.html
index fe512e5..3f2ad22 100755
--- a/html/logs.html
+++ b/html/logs.html
@@ -151,6 +151,11 @@ window.onload = function() {
element.innerText = response.deviceName;
});
+ //device name html page title
+ if (response.deviceName) {
+ document.title = response.deviceName;
+ }
+
},
error: function(xhr, status, error) {
console.error('AJAX request failed:', status, error);
diff --git a/html/saraR4.html b/html/saraR4.html
index 7e2a879..c8a6a8d 100755
--- a/html/saraR4.html
+++ b/html/saraR4.html
@@ -411,6 +411,10 @@ window.onload = function() {
elements.forEach((element) => {
element.innerText = response.deviceName;
});
+ //device name html page title
+ if (response.deviceName) {
+ document.title = response.deviceName;
+ }
},
error: function(xhr, status, error) {
console.error('AJAX request failed:', status, error);
diff --git a/html/wifi.html b/html/wifi.html
index 8281fa9..6105765 100755
--- a/html/wifi.html
+++ b/html/wifi.html
@@ -302,6 +302,11 @@ function get_internet(){
element.innerText = deviceName;
});
+ //device name html page title
+ if (response.deviceName) {
+ document.title = response.deviceName;
+ }
+
//get wifi connection status
const WIFI_statusElement = document.getElementById("wifi-status");