List Info

Thread: script ok after click on a _self link ???




script ok after click on a _self link ???
user name
2006-06-08 15:47:09
why the state is changing ? Something to see with the load
event ofcourse,
but why is it different after clicking ?

the user Script :
unsafeWindow.navigator.__defineGetter__("appName"
;, function() {
    return "My Value";
});
the web page :
<html>
  <head>
    <script>
        var isOk = (navigator.appName=="My
Value");
        if(isOk)
        {
            firsttime = "???????";
        }
        else
        {
            firsttime = "!!!!!!!!!!!!!";
        }
    </script>
  </head>
  <body>
    <div>
    <a target="_self"
href="test_onload.html">
        <script>
            document.write (firsttime);
        </script>
    </a>
    </div>
  </body>
</html>
_______________________________________________
Greasemonkey mailing list
Greasemonkeymozdev.org
http:
//mozdev.org/mailman/listinfo/greasemonkey
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )