There are a number of different ways to get the last element of an array in JavaScript. Below we will explore those techniques, each with a simple example. The Most Common Technique Using length() -1 The … [Read more...] about How to Get the Last Element of an Array in JavaScript
Programming
How to use document.write() in JavaScript
How to use document.write() in JavaScript The document.write() function is commonly used when testing simple web applications or when learning JavaScript. document.write() will print the contents of the parameter … [Read more...] about How to use document.write() in JavaScript
How to Open a New Tab with JavaScript
Opening a new browser window in a new tab can be done easily in JavaScript. Modern web browsers provide a simple API that creates an interface called the window object. Since the goal is to open a new location in … [Read more...] about How to Open a New Tab with JavaScript
PX to EM Converter – Online CSS Font Size Tool
This online tool will allow you to quickly convert between pixels (PX) and EM. Instructions To use the tool, you must fill out the default pixel size (which is typically 16px.)Decide whether you want to convert PX … [Read more...] about PX to EM Converter – Online CSS Font Size Tool
How to Hide the URL Address in the Browser Status Bar
For one reason or another, you may want to hide the URL displayed in the browser window's status bar when a user mouses over it. The URL can be easily hidden by using some simple HTML and JavaScript with a few basic … [Read more...] about How to Hide the URL Address in the Browser Status Bar
Heart Symbol HTML Code with Examples
If you are creating content for your website, you may want to include a heart symbol on the page. Including symbols or emojis on a webpage is very simple to do as long as you understand some basic HTML. Heart … [Read more...] about Heart Symbol HTML Code with Examples
HTML Trademark Symbol Code Example
If you have a name, slogan, or a logo that you have protected with a trademark, you may want to indicate that you have done so on your website. There are several solutions to display a trademark symbol, including … [Read more...] about HTML Trademark Symbol Code Example
Fatal error: Call to undefined function mysql_query() – Solved
If after upgrading PHP or while working on a programming project, you have encountered the following error: The best solution is most likely to use mysqli_query() instead. Simple MySQLI Example: Why Doesn't … [Read more...] about Fatal error: Call to undefined function mysql_query() – Solved
How to use Git to Checkout a Remote Branch
Checking out a remote branch can be surprisingly difficult due to Git's complexity. This tutorial will explain how to do that step by step. Clone the Remote Repository if you have not already. Example: This … [Read more...] about How to use Git to Checkout a Remote Branch
JavaScript String lastIndexOf Method Explained
The lastIndexOf() method is useful for determining the index at which a string is contained in another string. If the string that is passed as a parameter to the lastIndexOf() method does not exist in the string, … [Read more...] about JavaScript String lastIndexOf Method Explained