Re: script disabiling



"Reddy" <reddy.yn@xxxxxxxxx> wrote in message
news:1126263360.683796.326210@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 1.can i disable the javascript which will write some content(through
> document.write or document.writeln)

You mean you want to disable some JavaScript calls but not others? I
guess you could install a MIME filter and preprocess the script code
before it reaches the browser, erasing all such calls. Probably going to
be very complicated, error-prone and unreliable.

> 2.If we can't disable then is there any easy way to get what is
> written by the javascript into the document

document.documentElement.outerHTML reflects all HTML content on the
page, whether originally downloaded or created by script.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: javascript and server socket
    ... HTML does not execute anything. ... This is script code, executed by the JavaScript engine. ... The script can request permission, and it can ...
    (comp.lang.javascript)
  • Re: converting a variable within a append document.forms string
    ... when I try to use it in the following script code I can not get the passed ... You would think the above would work but the attribute card needs to be put ... Neither the .Net String class or the JavaScript string ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: innerHTML and PHP string parsing
    ... script code as content of a HTML `script' element. ... That is true, but, the implications of what PHP generates to Javascript executing in the UA *is* on-topic here. ... And in order to know what to do in PHP to make it JS friendly then you have to find out what is JS friendly first. ...
    (comp.lang.javascript)
  • Re: Alternating colours in a table cell
    ... I said in *javascript*! ... (in header) ... You don't know how to input a script code in a html file? ...
    (comp.lang.javascript)
  • Re: javascript: in location bar
    ... I use the JavaScript Console feature from ContextMenu Extensions, ... Nonsense. ... HTML code is not script code. ...
    (comp.lang.javascript)