1.Paste the following JavaScript in the address bar of browser to view the cookies:
javascript:alert(document.cookie.split(';').join('\n'))
2.Paste the following code to edit the cookie:
javascript:alert(window.c=function a(n,v,nv) {c=document.cookie;c=c.substring(c.indexOf(n) +n.length,c.length);c=c.substring(1,((c.indexOf(";")>-1) ? c.indexOf(";") : c.length));nc=unescape(c).replace (v,nv);document.cookie=n+"="+escape(nc);return unescape (document.cookie);});alert(c(prompt("cookie name:",""), prompt("replace this value:",""),prompt("with::","")));
1 comment:
Hi
did you know how to add the iframe to a site using javascript. for our website some add the iframe. but we did not know how he added this. when we get the server log we are found that they added the iframe via the javascript code. i need to explain this priblem to my client. if you know please let me know
Post a Comment