Skip to content

Tag: javascript

How to fill message box on Whatsapp Web?

I’m trying to send a message on Whatsapp Web (https://web.whatsapp.com/) only using Javascript, for study purposes. Here is the DIV that has the message box : And here is my code : The code runs without errors, but the message field is not filled, nothing happens on the interface. This code used to run …

Using SweetAlerts 2 themes

We’re looking to use the themes, but we can’t figure out how to do so – we’re not very experienced developers. We understand that we need to import the corresponding CSS file for the desired theme, but how do you then apply it? My goal is to have a dropdown with the different themes an…

Tailwind custom pseudo element

I’m trying to create a single js file for a component that is used with several styles in my project. On one page I have several buttons for some features, with a default background color set in the html file (for exemple bg-gray-500). For buttons where the feature is activated I change the background c…