[solved] Dojo/dijit sucks

It is not possible to create a link that looks like a button and opens in a new window when ctrl-clicking it. Fscking javascript lib.

Does not look like a button:

<a href="bla">Click</a>

Looks like a button:

<a href="bla" dojoType="dijit.form.Button">Click</a>

ā€“ and gets a damn javascript onclick handler that does of course not respect default browser link click behavior.

what if you used a < button> with onclick on it (how do i escape tags on this? idk)

onclick breaks ctrl+click behavior and does not open the link in a new tab unfortunately :confused:

i think there were css helper classes which make things look like a dojo control but not really (login form likely uses those)

<a href="foo" class="dijitButton">bar</a>

works fine that way.