-5

I wanted to know if it is possible to make a Bookmark in my Browser (Chrome/FF).

which on clicking, Write something like stack overflow or anything in the currently active textbox in browser.

karthik
  • 17,006
  • 70
  • 76
  • 122
kakarott
  • 193
  • 2
  • 9

1 Answers1

3
javascript:var x = function() {if (document.activeElement) document.activeElement.value='stack overflow';};void(x());

or just

javascript:void(if (document.activeElement) document.activeElement.value='stack overflow');
mplungjan
  • 155,085
  • 27
  • 166
  • 222