Categories
Action JavaScript Styling

JavaScript for optimizers #22: How to change CSS with JavaScript?

Sometimes you need to make visual changes to elements when creating your a/b tests with JavaScript. You don’t always have a developer that can set up a style sheet for you. So the question might arise: How to change CSS with JavaScript? This is what I will teach you in this article.

Categories
Action Changing JavaScript

JavaScript for optimizers #21: Testing the right mobile keyboard with credit card fields

In this article, we will be testing the right mobile keyboard for credit cards according to Baymard. It involves getting the right input mode, setting a pattern, disabling validation, disabling auto-correction, and setting the right autocomplete.

Categories
Action Changing JavaScript

JavaScript for optimizers #20: Testing optimized phone fields

In this article, we will be testing optimized phone fields according to Baymard. It involves disabling auto-correction, getting the right keypad with numbers, and setting the right autocomplete.

Categories
Action Changing JavaScript

JavaScript for optimizers #19: Testing optimized e-mail fields

In this article, we will be testing out optimized e-mail fields according to Baymard. It involves disabling auto-correction, getting the right keypad, and auto-capitalization.

Categories
Action Adding JavaScript

JavaScript for optimizers #17: Adding a back-to-top button

In this article, we will be adding a back-to-top button.

We’re going to apply the changes below:

We are adding a back-to-top button
We are adding a back-to-top button
Categories
Action Adding JavaScript

JavaScript for optimizers #16: Adding a site-wide benefits bar

In this article, we are adding a site-wide responsive benefits bar with JavaScript.

Our hypothetical case for this chapter is about adding benefits to a website. UX research from CXL showed that adding benefits underneath the header can be an effective way of communicating your unique selling points (USPs) to a visitor.

Categories
Action Adding JavaScript

JavaScript for optimizers #15: Creating image elements

In this article, we are creating image elements with JavaScript.

Our hypothetical case for this chapter is about maintaining a modern, relevant design. Some websites might look outdated because of the lack of modern design elements. Large hero images can give your website a boost in that aspect.

Categories
Action JavaScript

JavaScript for optimizers #14: Adding unique selling points

In this article, we will be adding unique selling points to your webpage with JavaScript.

Research from CXL showed that the benefits listed with bullet points are most memorable and most preferable. 

Categories
Action Adding JavaScript

JavaScript for optimizers #13: Refresh page button

Let’s create another way to refresh with a refresh page button!

This blog post will take you through the process of adding a button that will refresh the page while ignoring the cache.

Categories
Action Adding JavaScript

JavaScript for optimizers #12: Copy to clipboard button

Losing your coupon code sucks. A copy to the clipboard button would have saved me the hassle of convincing the customer service that I received one.

Our hypothetical case for this chapter is about adding a copy to a clipboard button for users that get a coupon code offered on a webpage.