View Full Version : bookmarklet name is not correct

Jun 23rd, 2009, 03:58 PM
I have troubles with the name of a bookmarklet when I drag it to the favorite bar in FireFox. The name is “javascript:document” this is not correct.
Can someone tell me why this is happening? The javascript code is beneath. It should be “ TWEET IT” like the title is.

<a href=\"javascript:document.write('<html><head><title>{$txt_short_url}</title></head><body><form name=\\'urlform\\' action=\\'http:\/\/twiturl.nl\\' method=\\'post\\'><input type=\\'hidden\\' name=\\'u\\'
value=\\'' + window.location.href + '\\' /></form></body></html>');document.forms[0].submit();\" title=\"TWEET IT!\" alt=\" TWEET IT!\"><img src=\"../template/default/image/ie.png\" border=\"0\" /></a>

The url is http://www.twiturl.nl

Jun 23rd, 2009, 05:44 PM
IIRC the bookmark prog actually grabs the content inside the A tags, and as your image has no alt there is no text there, try giving your IMG tag an alt tag instead of your A tag.

hope that helps! :thumbsup:

Jun 24th, 2009, 08:25 AM
omg! :) thank you udjamaflip

Oct 3rd, 2011, 12:30 AM
I know this is an old thread, but just wanted to say thanks, helped me solve the problem I was having.