Quantcast
Browsing all 165 articles
Browse latest View live

How to Redirect the HTML Client to the Configured IP Address

The JavaScript language lets you redirect users that open your Web pages to a configured IP address. This type of programming is typically used in internal networks that have a website address...

View Article


How to Use a Callback Function in JavaScript

A JavaScript callback function provides you with code that you can call several times throughout your code so that you do not need to retype the code for each call you make to the function. You call...

View Article


Image may be NSFW.
Clik here to view.

How to Get Your Number of Followers for Twitter With Javascript

You can retrieve the number of Twitter followers for any user, including yourself, with Javascript. Use jQuery, a Javascript library, to write a code snippet that quickly gets and displays the Twitter...

View Article

Image may be NSFW.
Clik here to view.

How to Change a Picture's Color When You Mouse Over It

HTML code doesn't directly affect an images' color. In order to change the appearance of a picture on a mouse-over event, a little sleight-of-hand, and some java script are necessary. The trick to this...

View Article

How to Embed an OnLoad Event

The OnLoad command is a JavaScript item that allows a specific action to occur each time a Web page is loaded or refreshed. For example, you can include a welcome message or other information in a box...

View Article


How to Collapse Objects in JavaScript

Including a JavaScript collapse option in your Web page allows you to insert a code inside your page that causes content to collapse and then reappear. Having such a function available on your Web page...

View Article

How to Build JavaScript Text Ads With Codes

Text ads are one of the most common types of ads you see online. These ads are sometimes less obtrusive and less noticeable than image-based ads; however, this can also make them more effective because...

View Article

Image may be NSFW.
Clik here to view.

JavaScript Syntax Error

When you learn to use a programming or scripting language such as JavaScript, there will necessarily be times when you need to debug. Making mistakes in the syntax of your JavaScript code is...

View Article


How to View a Counter Code Snippet on Javascript

Several online websites provide you with JavaScript code to insert in your HTML pages that count the number of visitors to your site. The code is stored in a file with a JS file extension, so you can...

View Article


How Do I Detect the Scroll Length of a Page?

You must use JavaScript in your HTML Web pages to determine the scroll length of a user's browser window. You can retrieve the horizontal and vertical scroll lengths. Programmers determine scroll...

View Article

How to Insert JavaScript Into a Table Cell

JavaScript lets you trigger client-side functions when a user clicks a table cell. You can insert a JavaScript function or statement in a table cell using the "OnClick" event. JavaScript provides you...

View Article

Image may be NSFW.
Clik here to view.

How to Write to a DIV in a Document DOM

Dynamic content generation gives your website the flexibility to change in real-time as users interact with the site. For example, by enabling your code to write to DIV elements, you make it possible...

View Article

Image may be NSFW.
Clik here to view.

How to Calculate the Remaining Days of the Year in Javascript

JavaScript has many functions that can be used to determine dates, alter dates and use dates in client-side applications. JavaScript has an object called a "Date()" object that exposes a wide variety...

View Article


How to Hide an Input in Jquery

HTML has multiple input controls such as text boxes and radio buttons. These controls give your application the ability to communicate with site visitors and collect data. Jquery, a powerful scripting...

View Article

Image may be NSFW.
Clik here to view.

How to Animate a DIV From Display None to Block in jQuery

Cascading Style Sheets help site developers show, hide and animate objects on a website. If your page has a hidden DIV element, you can use JavaScript to make that DIV appear gradually by changing its...

View Article


How to Remove "Hey X" on ProBoards

ProBoards is a free forum and message board hosting service. Once you create your board, you have access to a number of controls that determine how the forum looks. By default, at the top of the forum...

View Article

Image may be NSFW.
Clik here to view.

How to Use OnMouseOver and OnMouseOut

JavaScript event handlers cause JavaScript code to execute in response to various events that occur on your Web page. The "onmouseover" and "onmouseout" events are triggered by the user's mouse...

View Article


How to Change the Opacity of a Particular Cell of a Table Using HTML

HTML Table cells, by default, display opaque text. Items appearing in tables cells acquire the font and color property values you set for them in your CSS classes. One way to emphasize or deemphasize...

View Article

Image may be NSFW.
Clik here to view.

How to Make a DIV Draggable With JQuery

JQuery, a JavaScript library, includes the phrase, "Write less, do more" beneath the logo on its homepage. Web developers do write less JavaScript code using JQuery because its libraries handle complex...

View Article

How to Create a Table With a Border Using Javascript

JavaScript allows you to create dynamic tables on your website. You can add styles to the table when you print the element on the Web page. The JavaScript feature lets you create tables of information...

View Article
Browsing all 165 articles
Browse latest View live