To make this more robust, we would want to check each link for a value in document.links[x].search (i.e. the query string). Then we would know whether to glue the hasjs=1 bit on with a question mark or an ampersand.
Documentation on search.
In reply to Re: Re: Perl & JavaScript
by dvergin
in thread Perl & JavaScript
by akm2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |