javascript - Iframe border issue in IE8 -


i trying add iframe in page. working fine in browser except ie8.

i have checkout stackoverflow.com. many of suggestion frameborder="0". scenario dont have access edit line . tried using java script setattribute unfortunately not working in ie8.

function removeborder() {     document.getelementbyid("myframe").frameborder="0"; } 

is there possibility create dynamic attribute ?

could please me ? in advance.

this proper way create attribute in js

var att=document.createattribute("frameborder"); att.value = "0"; document.getelementbyid("myframe").setattributenode(att); 

source : w3s

advice : read more dom elements , how manipulate them


Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -