This example presses "Enter", but can easily be modified/extended to accommodate other keys as well.
Code: Select all
var evt = document.createEvent("KeyboardEvent");
evt.initKeyEvent ("keypress", true, true, window,
0, 0, 0, 0,
13, 13);
var canceled = !body.dispatchEvent(evt);
Code: Select all
URL GOTO=javascript:=var<SP>evt=document.createEvent("KeyboardEvent");evt.initKeyEvent("keypress",true,true,window,0,0,0,0,13,13);body.dispatchEvent(evt);
I have not tested the macro, so please post any corrections....