I am trying to access the keyword.URL property through javascript in a
html page. Here is the code:

var prefs = Components.classes["@mozilla.org/preferences-service;

var keyword_URL = prefs.getCharPref("keyword.URL");

Whatever code I have written before this is getting executed properly,
but nothing after that. When I evaluate this code in the error
console, I get the value of 'keyword.URL' without any error or

Any suggestions??