I need to run a keyboard shortcut on my HTML page before the page get completely loaded. How do i do this by using Jquery or Javascript.
I need to run this code mentioned below,
Refresh a webpage (no cache) -> Ctrl + F5
I need to run a keyboard shortcut on my HTML page before the page get completely loaded. How do i do this by using Jquery or Javascript.
I need to run this code mentioned below,
Refresh a webpage (no cache) -> Ctrl + F5
I don't really get what you are trying to do here but triggering keyboard events can't be done as explained here.
You could however refresh the page using:
location.reload();
And there are different events that you could use for example:
window.onload = function () { location.reload(); }
But this seems like an odd thing to do, could you provide more information about what you are trying to achieve here?