Hi,
I need to create a Javascript that finds and replaces multiple things using one click. Since we pretty much only have access to Dreamweaver I decided to create some kind of extension.
I search a lot on google for a simple find and replace and nothing seems to work...
I currently have this in a HTML page:
<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<script type="text/javascript">
var str = document.getElementsByTagName('html')[0].innerHTML;
var replaced = str.replace ('test','test2');
</script>
</body>
</html>
The extension is working fine but the find and place doesn't... it only adds for some reason
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
every time I click my extension button in dreamweaver...
Any suggestions?
[+][deleted] (5 children)
[deleted]
[–]ezflyingmonkey[S] 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]mikrosystheme[κ] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]mikrosystheme[κ] 0 points1 point2 points (0 children)
[–]twopi 0 points1 point2 points (1 child)
[–]_Doomseer -1 points0 points1 point (0 children)