Right now I have code like this which works in IE (this fires on an
onclick):
function f_Click(x)
{
if (window.event.s hiftKey)
{
I'd like to find the simplest way to make this work cross-browser. In
another post I found:
document.onkeyd own = function (e) {
evt = e || event;
if (evt.shiftKey) alert('shift');
}
But
1) I haven't figured out how to return the result into a variable.
2) I notice that once this code executes, it will execute again just by
hitting the shift button, without clicking.
Thanks
onclick):
function f_Click(x)
{
if (window.event.s hiftKey)
{
I'd like to find the simplest way to make this work cross-browser. In
another post I found:
document.onkeyd own = function (e) {
evt = e || event;
if (evt.shiftKey) alert('shift');
}
But
1) I haven't figured out how to return the result into a variable.
2) I notice that once this code executes, it will execute again just by
hitting the shift button, without clicking.
Thanks
Comment