Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Change the text inside the

tag:

/*remember, in the previous section, the variable 'para' was set equal to the text in 
the first<p>, which was 'Hello'
//we can now change that text, by changing the variable's value*/
const para=document.querySelector('p');
para.innerText='Goodbye';console.log(para.innerText);
Comment

PREVIOUS NEXT
Code Example
Javascript :: reverse each word in string javascript without using inbuilt function 
Javascript :: node mac copy to clipboard 
Javascript :: how to check if a string is an integer javascript 
Javascript :: javascript event listener 
Javascript :: async wait for axios reactjs 
Javascript :: react native prevent rotation of screen 
Javascript :: get parameter from url reactjs 
Javascript :: Javascript screenshot in video 
Javascript :: make react project 
Javascript :: generate express app 
Javascript :: how to run a bash script with node js 
Javascript :: jquery validate array input not working 
Javascript :: react-loader-spinner 
Javascript :: useeffect cleanup in reactjs 
Javascript :: image react 
Javascript :: nodejs add new property array object 
Javascript :: ng-pick-datetime 
Javascript :: javascript date get next 15 minutes 
Javascript :: how to send response to client in nodejs using res object 
Javascript :: try catch async await 
Javascript :: how to write a javascript function 
Javascript :: add next to react 
Javascript :: axios forward 
Javascript :: javascript add days 
Javascript :: operators in js 
Javascript :: how to push key value pair to object javascript 
Javascript :: vitejs env 
Javascript :: readfilesync buffer 
Javascript :: javascript import 
Javascript :: set body id js 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =