<< < 1 2 3 4 5   Sort: Rank

Example of using Regular Expressions for syntax checking in JavaScript
Example of using Regular Expressions for syntax checking in JavaScript ... var re = new RegExp("^(&[A-Za-z_0-9]{1, }=[A-Za-z_0-9]{1,})*$");var text = myWidget.value; var OK = re.test(text); if( ! OK ) { alert("The extra parameters need some work.\r\n Should be something like: \"&a=1&c=4\...
2008-05-13, 6520👍, 0💬

What is a fixed-width table and its advantages?
What is a fixed-width table and its advantages? Fixed width tables are rendered by the browser based on the widths of the columns in the first row, resulting in a faster display in case of large tables. Use the CSS style table-layout:fixed to specify a fixed width table. If the table is not specifie...
2008-05-13, 5533👍, 0💬

How do you target a specific frame from a hyperlink?
How do you target a specific frame from a hyperlink? Include the name of the frame in the target attribute of the hyperlink. &lt;a href=”mypage.htm” target=”BodyFrame”>>Next&l t;/a>
2008-05-06, 6625👍, 0💬

How to create arrays in JavaScript?
How to create arrays in JavaScript? We can declare an array like this var scripts = new Array(); We can add elements to this array like this scripts[0] = "PHP"; scripts[1] = "ASP"; scripts[2] = "JavaScript"; scripts[3] = "HTML"; Now our array scrips has 4 elements inside it and we can print or acces...
2008-05-06, 6659👍, 0💬

How do you convert numbers between different bases in JavaScript?
How do you convert numbers between different bases in JavaScript? Use the parseInt() function, that takes a string as the first parameter, and the base as a second parameter. So to convert hexadecimal 3F to decimal, use parseInt ("3F", 16);
2008-04-29, 5671👍, 0💬

What are JavaScript data types?
What are JavaScript data types? Number, String, Boolean, Function, Object, Null, Undefined.
2008-04-22, 5153👍, 0💬

How can JavaScript be used to improve the user interface?
How can JavaScript be used to improve the "look and feel" of a Web site? By the same token, how can JavaScript be used to improve the user interface? On their own, Web pages tend to be lifeless and flat unless you add animated images or more bandwidth-intensive content such as Java applets or other ...
2008-04-22, 5187👍, 0💬

How to detect the operating system on the client machine?
How to detect the operating system on the client machine? In order to detect the operating system on the client machine, use this property, navigator.platform[]. It will tell you the platform of the cient machine like: Win32.
2008-04-01, 5037👍, 0💬

How to read and write a file using JavaScript?
How to read and write a file using JavaScript? I/O operations like reading or writing a file is not possible with client-side JavaScript.
2008-03-25, 4967👍, 0💬

How do we get JavaScript onto a web page?
How do we get JavaScript onto a web page? You can use several different methods of placing JavaScript in you pages. You can directly add a script element inside the body of page. 1. For example, to add the "last updated line" to your pages, In your page text, add the following: &lt;p>blah, blah,...
2008-03-25, 4861👍, 0💬

How do you submit a form using Javascript?
How do you submit a form using Javascript? Use document.forms[0].submit(); (0 refers to the index of the form – if you have more than one form in a page, then the first one has the index 0, second has index 1 and so on).
2008-03-18, 5256👍, 0💬

What’s relationship between JavaScript and ECMAScript?
What’s relationship between JavaScript and ECMAScript? ECMAScript is yet another name for JavaScript (other names include LiveScript). The current JavaScript that you see supported in browsers is ECMAScript revision 3.
2008-03-18, 4999👍, 0💬

How is JavaScript different from Java?
How is JavaScript different from Java? JavaScript was developed by Brendan Eich of Netscape; Java was developed at Sun Microsystems. While the two languages share some common syntax, they were developed independently of each other and for different audiences. Java is a full-fledged programming langu...
2008-03-11, 4427👍, 0💬

What is JavaScript?
What is JavaScript? JavaScript is a platform-independent, event-driven, interpreted client-side scripting and programming language developed by Netscape Communications Corp. and Sun Microsystems. JavaScript is a general-purpose programming language designed to let programmers of all skill levels con...
2008-03-11, 4652👍, 0💬

<< < 1 2 3 4 5   Sort: Rank