Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Dev question - Changing webpage with addon

more options

Sorry if this is the wrong place to ask this but i couldnt find any other support website. (For addons)

I am working on making an addon and one of the things i'd like to do is add content into a textarea automatically.

I thought this would work: self.port.on("replacePage", function(message) {

 document.body.innerHTML = "<textarea>" + content + "</textarea>";

});

But it doesnt. -or i dont know how to use it.


Could anyone help, or help me find a place to get help? Thanks

Sorry if this is the wrong place to ask this but i couldnt find any other support website. (For addons) I am working on making an addon and one of the things i'd like to do is add content into a textarea automatically. I thought this would work: self.port.on("replacePage", function(message) { document.body.innerHTML = "<textarea>" + content + "</textarea>"; }); But it doesnt. -or i dont know how to use it. Could anyone help, or help me find a place to get help? Thanks

Chosen solution

All Replies (1)

more options

Chosen Solution

This is the site you're looking for: https://discourse.mozilla-community.org/c/add-ons