View Full Version : JavaScript Keeps re-appearing

02-04-2015, 11:39 PM
Hi, no matter how many times I keep deleting the JavaScript from my html pages in Dreamweaver CS6 it keeps reappearing once I open the html again, can someone tell me why this is happening. JavaScript below and thanks in advance

<script type="text/javascript">
function mask(end,middle,start,subject){
var one ='mai';
var two='lto:';
var three='?Subject=';
var putogether= one+two+start+middle+end+three+subject;

02-05-2015, 01:26 AM
did you check if browser is open a cached page? try reeshing

02-05-2015, 02:22 AM
Hi edbr, sorry don't think I was too clear, I delete the JavaScript from my code in the html page in Dreamweaver and it reappears again when I reopen the html file in Dreamweaver. If I comment it out it returns underneath the commented code.

02-05-2015, 02:58 AM
ah ok. you might need an exorsist, i havent a clue why thats happening then

d a v e
02-05-2015, 06:12 AM
is it part of a template or locked region?

what if you open the html doc in a text editor, remove the js, close it then open it again in DW?

02-05-2015, 10:48 PM
Hi Dave, no its not part of a template or a locked region, but opening it up in Notepad and deleting the JavaScript code seems to have worked.
Thanks very much

d a v e
02-06-2015, 09:43 AM
ok glad it worked ;)