开发者

iframe Onload Visibility

开发者 https://www.devze.com 2022-12-14 01:34 出处:网络
I am trying to hide an iframe until it is loaded by I keep getting an error with开发者_如何学Python the following code:

I am trying to hide an iframe until it is loaded by I keep getting an error with开发者_如何学Python the following code:

    jquery("some stuff">.html("<iframe frameborder='0' vspace='0' hspace='0' marginwidth='0'
 allowtransparency='true' scrolling='no' marginheight='0' 
style='visibility:hidden;' onload="this.style.visibility='visible';" width='600' 
class='frm'></iframe>").appendTo('body');

But it returns an error "syntax error this.style.visibility".

Can anyone help ?

edit:fixed spelling but now get the error

'missing ) after argument list'


You have a typo. Should be

this.style.visibility='visible';


required exit quotes \ and \

onload=\"this.style.visibility='visible';\"

0

精彩评论

暂无评论...
验证码 换一张
取 消