Home | Contact Us | Log In | Help
  ASP.Net & C#
  Perl and PHP
  Java Scripts
  C and C++
  Ajax Tutorials
  J2ee, J2Me, Java
  Python & Ruby Rail
  Crystal Report
  Cold Fusion & CFML
  Photoshop/Web Designing
  Tools & Utilities
  Sql Server
  Domain Name Registration
  Remotely Hosting
  Web/Server Application
  Hotel Marketing
  Internet and Law
   Search Engine Optimization/SEO
Interview Questions
previous< 1 2 3 4 5 6 7 8 9 10 > Next
JavaScript Special Characters

In JavaScript you can add special characters to a text string by using the backslash sign.

Insert Special Characters

The backslash (\) is used to insert apostrophes, new lines, quotes, and other special characters into a text string.Look at the following JavaScript code

n JavaScript, a string is started and stopped with either single or double quotes. This means that the string above will be chopped to: We are the so-called

To solve this problem, you must place a backslash (\) before each double quote in "Viking". This turns each double quote into a string literal:

JavaScript and memory leaks

Credits: This tutorial is written by Volkan. He runs the site Sarmal.com, a bilingual site featuring all his work, products, services, and up-to-date profile information in English and Turkish.

If you are developing client-side re-usable scripting objects, sooner or later you will find yourself spotting out memory leaks. Chances are that your browser will suck memory like a sponge and you will hardly be able to find a reason why your lovely DHTML navigation's responsiveness decreases severely after visiting a couple of pages within your site.

A Microsoft developer Justing Rogers has described IE leak patterns in his excellent article.

In this article, we will review those patterns from a slightly different perspective and support it with diagrams and memory utilization graphs. We will also introduce several subtler leak scenarios. Before we begin, I strongly recommend you to read that article if you have not already read


This script will let us open two or more pages when a single link is clicked.

First we neutralize the html link. This is done by letting the link point to "#" which means it points to nowhere and thus has no effect in HTML.

The trick is, that at the same time, we add an onClick event to the link. This event will, in return, execute our small javascript that opens the two pages.

In this article we will limit the script to open two pages.
But as we said, the technique can easily be used to open as many pages as you like from a single link.

How to Populate Fields from New Windows Using JavaScript

It isn’t uncommon for users to have difficulty filling out forms on web pages. A lot of the time, they need help with filling out various fields with headings such as: “Where is that number on my check?” “Why do I need to give you my email address?” “What is a URL?” These questions and more are usually answered by clicking a little question mark next to a field, which opens a popup window providing more information and/or an illustration. In this article, I’ll show you how to enhance the functionality of these popup windows by allowing the person to fill out the information there. This will enhance the user experience for a number of reasons:

Image Thumbnail Viewer

Description: Image Thumbnail Viewer is a compact, unobtrusive image viewer that can be applied to any link on the page to load the desired image inside a sleek interface based on the link's "href" value. Simply give the link in question- be it a text link or image thumbnail link- a rel attribute of "thumbnail", and you're done.

This script will center the enlarged image on the page and optionally display a text description based on the activating link's "title" attribute. A fading effect can be turned on/off to bring the final image into view.

previous< 1 2 3 4 5 6 7 8 9 10 > Next
  Copyright 2000-2006 © SoloScript.com, All rights reserved.