Click to See Complete Forum and Search --> : Remove java scripts from html files


scylla
04-18-2006, 05:41 AM
Hi,

How to remove java scripts from many html files ? I nead just clean html without any java scripts.
I use Dreamweaver, is it possible to do it with regular expressions ?

Thanks in advance,
scylla

KDLA
04-18-2006, 08:38 AM
You can do a site-wide "Find and Replace" in Dreamweaver.

In the Dreamweaver, go to Edit/Find and Replace.... Change the "find in" drop down to "entire local site." Copy the js code to the "find" box, then leave the "replace" box blank. Select "replace all" and that will get rid of the coding.

KDLA

carousel30
04-19-2006, 05:02 PM
That last suggestion is fine as long as all the javascripts you're using are the same. There's really not an easy way (at least to my knowledge) to strip JavaScript straight from Dreamweaver.

If you have different types of JavaScripts on different pages, you might just want to do a Find> and then enter something like "<script" into the find field.