security - How do you use your JavaScript framework to prevent Clickjacking? -
I'm using a custom function for some time to stop click-jading on some sites. However, I am surprised to know that there is not much about how to do this 'idiom' using various popular javascript settings.
Is jQuery, Dojo, YUI, and / or EXJEs used their framework to implement clickjaking protection here? I would love to see the example!
Why use a library? All you can do is:
var all = document.getElementsByTagName ('iframe'), l = all.length; While (l--) all [l] ParentNode.removeChild (all [L]); But if you really think that you need a library in Jquery it's very easy, just find all the iframes and delete them.
$ (document) .ready (function () {$ ('iframe'). Remove ();});
Comments
Post a Comment