[Greasemonkey] Simple Question - Hoping for fast response!

Johan Sundström oyasumi at gmail.com
Thu Sep 14 01:12:09 EDT 2006


> Im still having problems but im not sure what it is.. I changed it now but
> think im refrensing the unsafewindow thing wrong.
>
> var form = document.forms.namedItem("postForm");
>
> unsafeWindow.form.submit();

Above, you first declare a variable named "form" in the GM scope and
then go look for it in the scope of unsafeWindow. Strike
"unsafeWindow." above and things might work better.

-- 
 / Johan Sundström, http://ecmanaut.blogspot.com/


More information about the Greasemonkey mailing list