mam skrypt:
- Kod: Zaznacz cały
javascript:void(location.href=location.href.substring(0,location.href.substring(0,location.href.length-1).lastIndexOf('/')+1))
jak go ustawie jako zakladka (zamiast adresu) czy jako zdarzenie W:
- Kod: Zaznacz cały
<?xml version="1.0"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<button label="go2http" oncommand="javascript:void(location.href=location.href.substring(0,location.href.substring(0,location.href.length-1).lastIndexOf('/')+1))"/>
</window>
to dziala tak jak sie spodziewalem, natomiast w
- Kod: Zaznacz cały
<?xml version="1.0"?>
<?xml-stylesheet href="go2http.css" type="text/css"?>
<overlay id="go2httpOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<popup id="contentAreaContextMenu">
<menuitem id="go2http-item1" oncommand="javascript:void(location.href=location.href.substring(0,location.href.substring(0,location.href.length-1).lastIndexOf('/')+1))"
label="go 2 http"
class="menuitem-iconic go2http-icon"/>
</popup>
</overlay>
skrypt nie dziala, zamyka wszystkie otwarte panele;
reszta raczej jest ok bo np: alert("abc"); zamiast tego skryptu dziala normalnie
jakies sugestie ?