0

Is it possible to append a javascript snippet to a URL, so that when the URL is loaded the scirpt is excuted at the same time. For exemple:

<a href="some/path/to/file.html:javascript:alert('Welcome')">Link text</a>
silkAdmin
  • 4,640
  • 10
  • 52
  • 83
  • No[!](http://.) - however if you install grease monkey, you could pass commands to it in the url - for example in the hash part – mplungjan Sep 26 '12 at 08:39

1 Answers1

0

The answer is no! If you can do that, there will be a big problem on security. Script can copy cookies or user data ...

James
  • 13,571
  • 6
  • 61
  • 83