V
VA
Firefox 1.0.7
If I launch Jesse Ruderman's Javascript shell
http://www.squarefree.com/2005/10/30/javascript-shell-14/
on any web page and type in the shell
var mylink
for (j=0;j<document.links.length;j++) {
mylink=document.links[j];
if (mylink.href.match(/something/)) {
mylink.href="#";
mylink.onClick="alert('clicked');return false;";
}
}
I expected all my links having "something" in them to now popup my
alert box.
But nothing happened, no errors in the Javascript console, nothing
happens when I click on those links.
What gives?
Thanks
If I launch Jesse Ruderman's Javascript shell
http://www.squarefree.com/2005/10/30/javascript-shell-14/
on any web page and type in the shell
var mylink
for (j=0;j<document.links.length;j++) {
mylink=document.links[j];
if (mylink.href.match(/something/)) {
mylink.href="#";
mylink.onClick="alert('clicked');return false;";
}
}
I expected all my links having "something" in them to now popup my
alert box.
But nothing happened, no errors in the Javascript console, nothing
happens when I click on those links.
What gives?
Thanks