Detect when your site is visible to users
tipjs,web_developer
document.onvisibilitychange = function () {
document.visibilityState === "visible"
? (document.title = "👋 Hello")
: (document.title = "😟 Bye!");
};Có thể bạn đã miss một số snippets code
kiểm tra email trong javascript
kiểm tra email trong javascript
Detect when your site is visible to users
Detect when your site is visible to users
encode/decode base64 with JS
Encoding to base64 is done with the btoa command
Lấy tháng hiện tại trong javascript
Lấy tháng hiện tại trong javascript
Lấy ngày hiện tại trong javascript
Lấy ngày hiện tại trong javascript