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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -