How to Move Objects Using Javascript
JavaScript provides you with the ability to dynamically lay out objects on a Web page. You can dynamically move an object using the "Left" and "Right" properties. These two properties tell the browser...
View ArticleHow 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 ArticleHow to Use JavaScript to Get the iFrame Parent URL
The "iframe" tag in HTML can create an inline frame; that is, a frame that doesn't have to span the whole window, but you can size and position it wherever you like within a page. An inline frame...
View ArticleHow to Run a JavaScript
The JavaScript programming language enables you to create client-side commands for your Web pages. You have several ways to implement JavaScript to add dynamic functionality to your site. You might...
View ArticleHow to Replace HTML in Div Using jQuery
A free open-source JavaScript library, jQuery is used by a large number of websites to add user interactivity and enhance the visitor's experience. jQuery makes it simple to script complex AJAX...
View ArticleHow 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 ArticleHow to Scroll a Frame with JavaScript
The "scrollTo" and "scrollBy" JavaScript methods allow you to scroll a Web page programmatically. By referencing your way upward in the DOM tree, you can access other frames from JavaScript code inside...
View ArticleHow to Move a DIV Into Another DIV on CSS
Part of the magic of surfing the Internet comes from viewing special effects that websites generate. Developers build Web pages using construction blocks; in the HTML markup language, these blocks are...
View ArticleHow to Make a Title Bar Scroll
The title bar is located at the very top of your Web page and contains the name of the page. Sometimes your Web page's title might be too long to fit within the title bar, making it so users cannot see...
View ArticleHow to Post Data With an HTML Anchor
HTML forms are submitted using either the "get" or "post" method, depending on the purpose of the form and the server script being used, if any. A form is normally submitted when the user presses the...
View ArticleHow 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 ArticleHow to Change the Speed of Slideshows With JavaScript
Slidershows became a popular feature for Web pages shortly after the release of jQuery in 2006, a JavaScript library that makes it easy to create the kinds of animations required for sliders to work....
View ArticleHow to Get the Current Mouse Position in Javascript
When your site visitors move their mouse cursors, you can track those movements using JavaScript. Once you know the X and Y coordinates of the user's cursor, you can program your application to...
View ArticleHow to Convert KeyCode to ASCII With JavaScript
The ability to detect a site visitor's keystrokes can help you build more interactive Web applications. A game program, for instance, may need to know the characters a user presses in order to control...
View ArticleHow to Create an Embed Code for Streaming Video
Streaming media on your website is an effective way to share videos in a wide variety of formats with your site visitors. However, every visitor to your site has a different browsing configuration,...
View ArticleDifferences Between onLoad & onReady
Once you learn to handle Web page events, you can create websites that interact with site visitors and enhance their user experience. Some events, such as onLoad, occur even if you don't write code to...
View ArticleJavaScript for Scrolling DIV
JavaScript lets you automate scrolling features on your Web pages. If you want a div container to scroll automatically, you use the "scrollTop" property in JavaScript. The scrolling feature...
View ArticleThe JavaScript Code for a Fading Slideshow
Creating a Web page sideshow only requires a few small JavaScript functions. Making its slides fade requires a bit more work. Slideshows, although common in the Internet, can help you display your art,...
View ArticleHow to Make an Expandable Banner With JavaScript
One of the most useful features of client-side programs like JavaScript is that they can be used to dynamically modify web page user interfaces. Although server-side programs like PHP or Perl can also...
View ArticleHow to Get Rid of the Hand Cursor on Google Maps API V3
You can customize the cursors that an embedded Google map uses on your website. By default, the map uses an open-handed cursor when a mouse pointer is over the map and a closed-handed cursor when the...
View Article