@neha How to use custom html block - #2 by bahaou
change the js code to :
 frappe.call({
    method: "frappe.client.get",
        args: {
            doctype: "Company",
            name: frappe.defaults.get_user_default("Company"),
             },
             callback(r) {
                 if(r.message) {
                      root_element.querySelector("#abbr").textContent=r.message.abbr;
                 }
             }
});
create html element with id #abbr