1

I need the URL of the current childBrowser window.. I've tried with

function doThis(){
var location;
var cb = window.plugins.ChildBrowser;
cb.onLocationChange = function(loc){ location = loc; }
alert(location);
}

in my body

<a href="#" onclick="doThis()">Do this</a>

But whenever I add the line with cb.onLocationChange, my app doesn't respond anymore.. Any suggestions?

dda
  • 6,030
  • 2
  • 25
  • 34

1 Answers1

2

It should be

cb.onLocationChange = function(loc){
    location = loc; 
    alert(location);
}
gmh04
  • 1,351
  • 9
  • 24