[pmwiki-users] JavaScript help on edit . . .

Crisses crisses at ofobscurity.com
Sat Jul 16 09:26:26 CDT 2005


On Jul 13, 2005, at 10:50 PM, Benjamin Wilson wrote:

> javascript:self.open(location.href+%22?action=edit%22, %22opener%22)
>
> The above line of code is in a recipe (I forget which). I use it to  
> quickly open a page to edit. However, it always kicks to a new  
> window (I use Firefox). I would like to try to get the script to  
> load in the same window.
>
> Any help is greatly appreciated.
>
> Regards,
> Ben Wilson

Bookmarklets?

If that's the bookmarklet script ( I have javascript:window.open 
(location.href+"?action=edit") and it still opens in a new window), I  
don't know how else to do it.


I figured it out --

javascript:window.location.replace(location.href+"?action=edit")

Crisses
-- 
I'm quite sure there are things still out there to get me, but now I  
have a more realistic expectation that they're probably really busy  
and procrastinate just like everyone else, so they'll get to hunting  
me down some other day ;)





More information about the pmwiki-users mailing list