How to change all 100 % height images in HTML to 50% height using javascript -


i have html files (i cant know in then) using javascript need resize images 100 % height 50 % height.

what need if using javascript elements tagname

var imgs=document.getelementsbytagname("img"); for(var in imgs){   if(imgs[i].height=="100%"){        img[i].height="50%";   } } 

stack overflow not place people work you.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -