Menu
Hello:
My code, which is in the form of a bookmark, is as such:
javascript:k=location.href;m=
document.domain;n=”www.live25.m”;
p=”live25.dev.live25.com”;
if(document.domain==n)
{k=k.replace(m,p);}else{k=k.replace
(m,n)}location.href=k
I need to add more domains to this bookmarklet, but I don’t
know what the appropriate syntax for adding another variable, that is, how would I write it so that I can add another block of code like the above, in the same bookmarklet, but replace “live25” with “live25h”?
I would probably need to add nine or ten different domains in.
Any help would be greatly appreciated.