In many browsers, you can do something like this:
javascript: alert("...");
Is there a way to combine this with a url? I am thinking of something like this:
http://example.com?javascript: alert("...");
The effect will be that javascript will be executed after the page loads (the same effect as loading the URL and then entering the javascript operator above)
Edit: I cannot use window.onload or something like that because I do not necessarily own the page.
source
share