Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript change all text color

var all = document.getElementsByTagName("*");

for (var i=0, max=all.length; i < max; i++) {
 all[i].style.color = "red";
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to display image from s3 bucket in react js 
Javascript :: replace in javascript 
Javascript :: javascript run function based on the page size 
Javascript :: usecontext hook react 
Javascript :: image view component react js 
Javascript :: tolowercase js 
Javascript :: farewell discord.js 
Javascript :: Sort an array to have specific items 
Javascript :: react pass variable from child to parent 
Javascript :: list keys json python 
Javascript :: js comparison operators 
Javascript :: use await in for each 
Javascript :: new date() javascript 
Javascript :: node get current user 
Javascript :: javascript timing events 
Javascript :: int val javascript 
Javascript :: execute command method 
Javascript :: yup phone number validation 
Javascript :: sequelize max 
Javascript :: redirect to website from promise value fetch 
Javascript :: js int to string base 
Javascript :: Change the text inside the <p tag: 
Javascript :: password validation with regular expression in javascript 
Javascript :: parseint 
Javascript :: render react component 
Javascript :: pm2 logs on same console 
Javascript :: date format date and time in js 
Javascript :: Function Alert,confirm,prompt 
Javascript :: show the time zone of browser javascript 
Javascript :: change on select with javascript 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =