javascript - If I write js inside a hidden div, will the js inside run?
PHP中文网
PHP中文网 2017-05-18 10:51:40
0
2
475

`<p style="display:none;">
<script>
Will the code here run?
</script >
</p>`

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
phpcn_u1582

It will. display:none just hides it, the actual content is still there

迷茫

Of course you can. The node is just hidden, but still in the dom tree.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template