Quantcast
Browsing all 165 articles
Browse latest View live

How to Get Page Size & Scroll in JavaScript

JavaScript lets you identify the height of a user's window and scroll down the page automatically. The technique should be used sparingly on a Web page, because it does not provide a good user...

View Article


How to Display a Prime Factor in Javascript

Knowing how to calculate prime factors for a number is an important skill taught in high school mathematics. The Fundamental Theorem of Arithmetic states that non-prime positive integers can always be...

View Article


Image may be NSFW.
Clik here to view.

How to Reduce Font Size on a Button With Javascript

Buttons are standard HTML elements created with the input tag. Buttons have a uniform appearance that's suited to the way buttons appear in the user's operating system. Cascading Style Sheets, or CSS,...

View Article

How to Update the Select Box With JavaScript

JavaScript allows you to set up a "select" box, which is the drop-down form element used to collect input from users. You can update and add a new value for users. This type of JavaScript feature is...

View Article

How to Change the Animated Color on a Page Background in JavaScript

The "body" HTML tag contains the color used in the background of a Web page. You can dynamically change the color by using JavaScript. The JavaScript loads when the user opens the Web page, and you can...

View Article


How to Hide Java Script Code

Some webmasters place JavaScript code directly in the HTML pages. Placing it in the pages makes it convenient to add and edit, but the code can be seen by search engines and readers who open the page...

View Article

How to Override an onClick Event in JavaScript

The "OnClick" event triggers when a user clicks an HTML element on your Web pages. You can create an OnClick function that overrides the standard OnClick event in JavaScript. The OnClick override...

View Article

How Do I Change the Class Name in JavaScript?

Classes are a way of identifying HTML elements on a Web page when using Cascading Style Sheets to change their appearance. The style sheet groups a set of style properties under a class name. Then, you...

View Article


How to Jump to Anchor With JavaScript

Anchor elements are used in HTML to make hyperlinks to other Web pages, but they can also be used to mark and link to different sections of a single page. A common technique is to create a table of...

View Article


How to Get an iFrame's Updated SRC in JavaScript

The "iframe" tag in HTML is used to create an inline frame. An inline frame is like other HTML frames, in that it contains another Web page within it. Inline frames, however, do not have to span across...

View Article

Image may be NSFW.
Clik here to view.

How to Remove Non-Numeric Characters in Javascript

Everything a visitor types while on your website consists of text, even when the visitor types numbers. If your application expects to receive pure numeric input, your program must strip away...

View Article

Image may be NSFW.
Clik here to view.

The Advantages of Java Script

JavaScript is a programming language commonly used in websites. JavaScript functions run at client side and are interpreted by the user's Web browser. JavaScript is relatively accessible to developers...

View Article

Image may be NSFW.
Clik here to view.

How to Scroll Horizontally in Javascript

The National Institute on Aging recommends designing Web pages that do not require horizontal scrolling. When a Web page's content spills over to hidden areas to the right of the viewing area, Browsers...

View Article


How to Create a Checkbox Redirect

When you include a checkbox on your HTML page, you provide a space in which a user can check to acknowledge that he has done something like read a user agreement. Users can also make choices when a...

View Article

Image may be NSFW.
Clik here to view.

How to Insert a Character at the Cursor in JavaScript

JavaScript is a client-side scripting language that can be used by Web developers to perform a variety of dynamic user interface tasks. User interface manipulations can range from simple responses...

View Article


How to Limit the Number of Checkboxes in Javascript

When you create a list of check box values for users to choose from, you can set a limit to how many they can check using JavaScript. You set the check box limit with the number of values the user can...

View Article

How to Use JavaScript to Control Disabled Color

JavaScript provides programmers with a client-side language that manipulates HTML elements on Web pages. You can use JavaScript to enable and disable a color on an element. You disable a color by...

View Article


Image may be NSFW.
Clik here to view.

How to Rotate Photos in Slideshows With JavaScript

JavaScript is often used to produce dynamic effects on Web pages not possible with HTML alone. JavaScript offers you a lot of control over the elements of your page, even after it is loaded. For...

View Article

How to Embed a URL in a Script

Although you may choose to place links to URLs in the HTML of your Web page, you also may choose to link to URLs from the page using JavaScript. If you already are using a lot of JavaScript code on a...

View Article

How to Reinstall a Script

When you remove a script from the HTML of your Web page, you disable any of the functions that this script may have been able to perform for you. The type of function a script is able to perform...

View Article
Browsing all 165 articles
Browse latest View live