Saturday, May 25, 2024
 Popular · Latest · Hot · Upcoming
184
rated 0 times [  187] [ 3]  / answers: 1 / hits: 34123  / 12 Years ago, sat, march 24, 2012, 12:00:00

I want to disable <script> tags. Here's my code, but it doesn't work.



document.getElementsByTagName('script').disabled = true;

More From » dom

 Answers
24

Can't be done... A script tag evaluates as soon as the DOM renderer renders it, so getting a handle on it after wards won't do much.


[#86631] Thursday, March 22, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
elliem

Total Points: 415
Total Questions: 117
Total Answers: 94

Location: American Samoa
Member since Fri, Aug 26, 2022
2 Years ago
;