Hello,
I am tring to find out how to detect if document.write or alert is written on the page anywhere.
I can't seem to find a way of finding out if its in the html code or not..
I am using JavaScript, anyone able to help me on this?
Thanks
Printable View
Hello,
I am tring to find out how to detect if document.write or alert is written on the page anywhere.
I can't seem to find a way of finding out if its in the html code or not..
I am using JavaScript, anyone able to help me on this?
Thanks
As long as it's valid X/HTML, then just search within document.documentElement.innerHTML. However, if it's written invalidly outside of the <html> tag, then you can't find it without including the outerHTML as well.