Rosetta Code:Village Pump/Language Page Links: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 44: | Line 44: | ||
links[i].href = links[i].href + "#" + category; |
links[i].href = links[i].href + "#" + category; |
||
}</lang> I haven't tested this very well - just once in Opera from Category:1 to Problem1 (it's almost time to go to bed). It will also have the unwanted side effect of changing ALL the links on the page. |
}</lang> I haven't tested this very well - just once in Opera from Category:1 to Problem1 (it's almost time to go to bed). It will also have the unwanted side effect of changing ALL the links on the page. |
||
::::Beware that these might be used to inject a malicious anchor in somehow (haven't thought it through that far, but I'm convinced it could be done somehow). Also, the second one modifies |
::::Beware that these might be used to inject a malicious anchor in somehow (haven't thought it through that far, but I'm convinced it could be done somehow). Also, the second one modifies "all" links on a page. [[User:BR|BR]] 06:34, 17 November 2010 (UTC) |