dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: view if code is on the page

  1. #1
    Join Date
    Mar 2006
    Posts
    228

    view if code is on the page

    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

  2. #2
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,943

    Re: view if code is on the page

    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.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)