I would like to know how do I concatenate a link within a href
attribute with a variable?
Note must be something 'inline' .
I use a platform that does not let me use scripts inside the page so the inline reason.
Example:
var teste = [x];
<a href="#" onclick="window.open('http://websro.correios.com.br/sro_bin/txect01$.QueryList?P_LINGUA=001&P_COD_UNI=',teste)" target"_blank">vai</a>
The output should be:
http://websro.correios.com.br/sro_bin/txect01$.QueryList?P_LINGUA=001&P_COD_UNI=[x]
My code is wrong in organizing the elements or quotes in the wrong place so disregard this part. I need a hint of how I would ride this.