It works fine when i click on the link...i am trying to add this code to launch the modal window when i press a key say f2 ...since it redirects directly to the given URL therefore the modal window is not opening....Can you please suggest any solution for this??
0 down vote favorite
I am uing your link for integrating keyboard short cuts.. It redirects to the given URL after pressing the key..
jwerty.key('f2', function () { window.location = document.getElementById('SaleLink').href; });
I am using following code to launch the bootstrap modal window :
[a href=PopUp.php?Id=1 data-toggle="modal" data-target="#myModal">Open</a]
It works fine when i click on the link...i am trying to add this code to launch the modal window when i press a key say f2 ...since it redirects directly to the given URL therefore the modal window is not opening....Can you please suggest any solution for this??