I have this code embedded in a Firefox bookmark:
javascript:Qr=document.getSelection();if(!Qr){void (Qr=prompt('Translate to Spanish:',''))};if(Qr){window.setTimeout('x.focus( )',500);void(x=window.open('http://www.wordreference.com/es/translation.asp?v=pop&tranword='+escape(Qr),'WordR eference','width=600,height=600,left=800,top=0,res izable=yes,scrollbars=yes'));void(x.scrollTo(300,4 00))}
or summarized:
javascript: ...
setTimeout('x.focus()',500);
void(x=window.open('http://...',...));
void(x.scrollTo(300,400))
I'm interested in the last sentence, mainly because it doesn't work. I cannot manage to make the script work properly. I get a new window that gets focus, but nothing about the scroll. Can you shed any insight? Thanks.