Add fixed tag to diigo bookmarklet - javascript -


i trying make simple change standard diigo bookmarklet. wish add fixed tag diigo 'add new bookmark' form. code is:

javascript:javascript:(function(){ var url=location.href; var title=document.title||url; var tagsvar='testtag'; var desc=(window.getselection?window.getselection().tostring():document.getselection? document.getselection():document.selection.createrange().text); window.open('https://www.diigo.com/post? url='+encodeuricomponent(url)+' &title='+encodeuricomponent(title)+' &desc='+encodeuricomponent(desc)+' &tags='+tagsvar+'&client=simplelet#main','_blank','menubar=no,height=580,width=608,toolbar=no,scrollbars=no,status=no'); })(); 

all have added is:

var tagsvar='testtag'; 

and

&tags='+tagsvar+' 

url, title , desc correctly entered diigo form tags field blank.

i new javascript basic error. thank help


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -