javascript - trouble with ctrl plus click of href=# -
i working ember js. have <a>
tag on click of submit form js , navigate target url. works fine.
for showing pointer icon, used href="#"
on html. have been doing ages.
now qa decides right click , open in new tab or ctrl click. happens is, new tab opened url this.
www.something.com/index.html/#
beacuse href #.
and qa expects see target page in new tab
i have 2 fixes.
- remove href = # , give css pointer style. new tab not work
- somehow open tab , form post in new tab.
is 2 possible?
rather 'hacking' a
tag pointer, can use cursor:pointer
in css.
demo:
div { height: 100px; width: 100px; display: inline-block; background: tomato; vertical-align:top; } .curs { cursor: pointer; }
<div>no cursor</div> <div class="curs">cursor</div>
since using 'submitting form', suggest using an
<input type="submit"/>
as submit form you.
Comments
Post a Comment