burger menu icon
WillMaster

Latest at This Website

Here are introductions to the 11 most recent items:

JavaScript-Formatted Date and Time
21 August 2026, 13:26:38 UTC

When I repeatedly code something, even if only a few times a year, I eventually get disgusted with myself for not having written a function to do the work for me.

Well, below is such a function.

The JavaScript function will format the date and/or time according to your formatting codes. When you call the function, tell it the id value where to publish the result, and how to format the result.

That's pretty much it.

Of course, there are things to consider while getting up to the last step. Mostly, it's how to specify the format you prefer (do you want to print "January" or "Jan", or "01" or "1", for example). I'll address formatting shortly.

(The complete article is at https://www.willmaster.com/library/web-content-prep/javascript-formatted-date-and-time.php)
Friendly Anchor Link
18 August 2026, 16:08:08 UTC

An anchor link is sometimes referred to as a scroll-to link or a jump link. The anchor link scrolls the web page to the spot on the page that has a matching id attribute.

To clarify, an h3 tag might have an id="my-spot" attribute. Thus, clicking a link with a #my-spot anchor (<a href="#my-spot">) will scroll the browser window to the <h3 id="my-spot"> tag.

(The complete article is at https://www.willmaster.com/library/features/friendly-anchor-link.php)
Form Field Prefill With a Tap
10 August 2026, 14:32:07 UTC

First, the basic "how it works."

You have a form field.

You have a link (or image, button, div, …)

When the link is tapped, the form field is filled in.

That's the essence of how it works.

I used this for new bookkeeping software. It needed to email someone after I updated records. Well, I wanted to view the email first to verify all the data the email should have actually was present.

But I got tired of typing in my email address and then typing in their email address. Every day.

I made two buttons. One for "Them" and one for "Me." When I tap a button, the correct email address is filled into the address field. Yummy.

Other ways the idea might be used:

(The complete article is at https://www.willmaster.com/library/manage-forms/prefillmethod.php)
Auto-Scroll a Div to the Bottom
28 July 2026, 14:53:35 UTC

You can automatically scroll the content of a div to the bottom. Generally, this would be done for user convenience.

I had need for that functionality just this morning. It is the reason for this article. My thought was that some of you would appreciate knowing how to do this.

(The complete article is at https://www.willmaster.com/blog/javascript/auto-scroll-a-div-to-the-bottom.php)
Beacon
27 July 2026, 17:51:09 UTC

A built-in JavaScript function allows your web page to send a quick message to a URL on the same domain.

Data isn't actually required. You may wish to touch the page or script without sending anything.

No response is received from the page or script. But data may be sent. If sent, the data size is limited to about 64k.

The beacon may be used to:

Code examples are further below. First, here is the format for using the function.

navigator.sendBeacon(URL,OPTIONALDATA)
(The complete article is at https://www.willmaster.com/library/statistics/beacon.php)
Digging for an IP Address
21 July 2026, 16:55:31 UTC

Apps that request things from your website have an IP address. The IP address tells the website where to respond to.

The requesting app generally is a browser. It may be a robot or spider. It might be a VPN website app. Whatever it is, the app asks for something from your website.

When asked for something by a browser or other app, it is typically either a request for a response from PHP or other software on your website or a request for a web page available at your site. Additional requests may be made (images, CSS files, videos, …) to complete the construction of a web page.

All of that, everything, requires an IP address to send stuff to. The app tells your website the IP address to use, and your website sends its response to that IP address.

(The complete article is at https://www.willmaster.com/library/snooping/digging-for-an-ip-address.php)
Simple CSS Rotate
12 July 2026, 15:53:38 UTC

For a simple rotate, I generally use the CSS rotate property. I specify how many degrees or what fraction of a turn, and I'm good to go.

An example is a download arrow. Just this morning, I needed an arrow that could be interpreted as a download arrow. I wanted a character, not an image. All I found was ⇪. I needed it to point down, so I rotated it half a turn.
was the result. (The CSS is rotate:.5turn;)

Images can be rotated. Paragraphs, divs, even entire tables can be rotated. To rotate individual characters, they need to be in a div (or a table or other block container). To rotate a character within a line of text, specify the display:inline-block; CSS declaration for the div containing the character.

(The complete article is at https://www.willmaster.com/library/features/rotate2.php)
All Checkboxes With One Tap
6 July 2026, 16:03:49 UTC

All checkboxes of a set can be made to conform to a controlling checkbox.

In other words, when the controlling checkbox is tapped, all checkboxes of the set are checked or unchecked according to the state of the controlling checkbox.

The functionality can be desired when there are many checkboxes in a set. I recently needed such functionality.

A dashboard I'm making is being coded to export a table from database entries. The columns to include in the table are specified with checkboxes. Instead of requiring the user to tap 10 times to select all columns, I made an "ALL" checkbox to do it.

(The complete article is at https://www.willmaster.com/blog/javascript/all-checkboxes-with-one-tap.php)
Avoid Expired SSL Certificate
29 June 2026, 18:41:21 UTC

Have you experienced your website suddenly giving error messages when you use https:// URLs? Many site owners have.

When that happens, it's almost a certainty that the domain's SSL certificate has expired. It is also almost a certainty that the website owner was unaware of the certificate's expiration date.

The software with this article, SSL Certificate Check, was written to do a quick check on a domain's SSL certificate. The software reports the certificate's expiration date.

SSL Certificate Check will check the certificate expiration date only on domains with a valid certificate. Expired certificates are no longer valid. If you don't have a valid certificate, then you already know something is wrong because https:// URLs don't work.

(The complete article is at https://www.willmaster.com/library/snooping/avoid-expired-ssl-certificate.php)
ASCII Quotes to Typographical Quotes
20 June 2026, 20:21:37 UTC

ASCII quotes are what you see when you work with plain text software (not unicode text). Something like this:

He said, "You've got 'spicies' in your pie."

Typographical quotes are sometimes called educated quotes or curly quotes. The ASCII quotes in the above example converted to typographical quotes looks like this:

He said, &ldquo;You&rsquo;ve got &lsquo;spicies&rsquo; in your pie.&rdquo;

Notice that the ASCII apostrophe is also converted. It became a typographical apostrophe.

(The complete article is at https://www.willmaster.com/blog/php/ascii-quotes-to-typographical-quotes.php)
Image Zoom on Hover
16 June 2026, 15:57:57 UTC

Wanted: When a mouse hovers over an image, the entire image becomes larger.

This article describes how to do an image zoom. It uses CSS. But no JavaScript.

Also of note is that this is a hover effect. That means a mouse pointer must be available to hover over the image. Generally, multimedia phones and tablets don't have a mouse pointer.

(The complete article is at https://www.willmaster.com/library/features/image-zoom-on-hover.php)

© 1998-2001 William and Mari Bontrager
© 2001-2011 Bontrager Connection, LLC
© 2011-2026 Will Bontrager Software LLC