string to url slug convert in php
Function: <?php function create_slug($string, $ext='.html'){ $replace = '-'; $string = strtolower($str...
learn web programming.
string to url slug convert in php
Function: <?php function create_slug($string, $ext='.html'){ $replace = '-'; $string = strtolower($str...
Javascript Using the document.getElementsByName Method
This method takes in as argument the name attribute value of elements to be retrieved and returns a collection of desired matching ele...
Javascript Other Cross-browser ways of accessing form element objects
There are two other cross-browser ways of accessing form elements: document.getElementsByTagName and document.getElementsByName . US...
Javascript Checking for getElementById support
All modern browsers support getElementById() method. However if you are to support very old browsers, use the following function: funct...
Javascript access and validation the form and input elements
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Demo: Using g...
Accessing Form Elements using getElementById
In order to access the form element, we can use the method getElementById() like this: var name_element = document.getElementById(...
Use getElementById to get the elements in a form
There are many ways of accessing form elements, of which the easiest is by using the cross-browser W3C DOM document.getElementById() m...
JavaScript Date and Time Object
The Date object is useful when you want to display a date or use a timestamp in some sort of calculation. In Java, you can either make...
JavaScript Popups
However, we will show you how to make windows popup for reasonable occasions, like when you want to display extra information, or when y...
JavaScript Time Delay
Implementing a timed delay in JavaScript is useful in the following situations: Showing an “Update your bookmark” page when you have t...
JavaScript Window.Location
Control over what page is loaded into the browser rests in the JavaScript property window.location . By setting window.location equal...
JavaScript Print Function
The JavaScript print function performs the same operation as the print option that you see at the top of your browser window or in your ...
JavaScript Alert Prompt and Confirm function
JAVASCRIPT ALERT EXAMPLE 1: </strong> <HTML> <HEAD> <TITLE>Using alert Boxes</TITLE> <SCRIPT LANGU...
JavaScript Array
Array Constructors: var variable = new Array() var variable = new Array( int ) var variable = new Array(arg1, ..., argN) ...