October 17th, 2012, 12:29 PM
-
How to execute javascript from a bookmark
In Firefox, if you put "alert('what is up');" as a path to a bookmark, then that js will execute when you "go to" that bookmark. But how do you do this in other browsers? I doesn't work in IE. I honestly haven't checked the others. But if you have, and it's not the same as above, could you please share your wisdom?
Thanks,
Dan
Operating system ubuntu 12.04
October 17th, 2012, 02:08 PM
-
They're called "bookmarklets" and they work fine for me in FF, IE, and other browsers.
However, I'm surprised that this would work:
Code:
alert('what is up');
Usually you need to use the "javascript:" pseudo-protocol:
Code:
javascript:alert('what is up');
October 18th, 2012, 12:27 AM
-
Yup. Forgot the "javascript:" I didn't realize there is a name for this, bookmarklets. Funny, I thought I was pretty clever using it. I see here I'm only about 15 years late on the bandwagon
http://www.bookmarklets.com/tools/data/index.phtml
Thanks Kravvitz
Thanks,
Dan
Operating system ubuntu 12.04