you can put the "javascript:" code in the body, but you can't put <script> in the head?
there are hacks to add a script into a window without it knowing... Perhaps someone has a link to an example On 10/25/06, Truppe Steven <[EMAIL PROTECTED]> wrote: > Truppe Steven schrieb: > > Hello everyone, > > > > i would find it usefull to use jQuery for bookmarklets (because jQuery > > code is so short) but also on pages that do no include jQuery in their > > pages. Is there a way to do that ?? > > > > Is there a way to just add jQuery into the head of the document loaded ? > > > > best regards, > > Truppe Steven > > > > _______________________________________________ > > jQuery mailing list > > [email protected] > > http://jquery.com/discuss/ > > > > > For example (not very usefull) > > javascript:alert($("p").size()); > or maybe better one to show all href of all a tags of the actual document: > javascript: $("a").each(function() { alert($(this).attr("href")); }); > > ^^^ copy this into you adress bar on a page that include jQuery to get > the number of p tags of the document inside a message box > > > best regards, > Truppe Steven > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
