1 # Disallow Script URLs (no-script-url)
3 Using `javascript:` URLs is considered by some as a form of `eval`. Code passed in `javascript:` URLs has to be parsed and evaluated by the browser in the same way that `eval` is processed.
7 Examples of **incorrect** code for this rule:
10 /*eslint no-script-url: "error"*/
12 location.href = "javascript:void(0)";
17 * **JSHint**: This rule corresponds to `scripturl` rule of JSHint.
21 * [What is the matter with script-targeted URLs?](https://stackoverflow.com/questions/13497971/what-is-the-matter-with-script-targeted-urls)