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.

  1. remove href = # , give css pointer style. new tab not work
  2. 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

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -