Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

overflowx javascript

// OverflowX and OverflowY properties in Javascript

// x-axis scroll bar

document.getElementById("myId").style.overflowX = "scroll"; 

// y-axis scroll bar 

document.getElementById("myId").style.overflowY = "scroll"; 

// both x-axis and y-axis scroll bar

document.getElementById("myId").style.overflow = "scroll"; 

// To remove overflow, do the following:

document.getElementById("myId").style.overflow = "hidden"; 
 
PREVIOUS NEXT
Tagged: #overflowx #javascript
ADD COMMENT
Topic
Name
9+2 =