PDA

View Full Version : JavaScript Keeps re-appearing


theowls
02-04-2015, 10: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=';
//start,middle,end,subject;
var putogether= one+two+start+middle+end+three+subject;
document.location.href=eval('"'+putogether+'"');
window.status=putogether;
}
</script>

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

theowls
02-05-2015, 01: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.
Thanks

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

d a v e
02-05-2015, 05: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?

theowls
02-05-2015, 09: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, 08:43 AM
ok glad it worked ;)