
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 2202 Articles for HTML

169 Views
Use the JavaScript fixed() method to display in fixed-pitch font as if it were in a tag.ExampleYou can try to run the following code to display a string in the fixed-pitch font. JavaScript String fixed() Method var str = new String("Hello world"); alert(str.fixed());

226 Views
The toLocaleString() method returns a string value version of the current number in a format that may vary according to a browser's local settings.ExampleYou can try to run the following code to return a string value version − JavaScript toLocaleString() Method var num = new Number(150.1234); document.write( num.toLocaleString());

948 Views
Use the toExponential() method to force a number to display in exponential notation, even if the number is in the range in which JavaScript normally uses standard notation.The following is the parameter −fractionDigits - An integer specifying the number of digits after the decimal point. Defaults to as many digits as necessary to specify the number.ExampleYou can try to run the following code to force a number to display in exponential function − Javascript Method toExponential() var num=77.1234; var ... Read More

3K+ Views
In this tutorial, we will understand two approaches to display the document's title using JavaScript. Using document.title Property One of the most used methods in JavaScript to access an HTML document’s title is using a document.title property. In the following example, you will learn to get access to the title. After accessing the title in JavaScript, you can manipulate it and change the way it is displayed on a website. Syntax Here you can see how with the use onClick method, we can set the innerHTML of a paragraph within the document. The document.title is used to grab the title, ... Read More

129 Views
To match any string containing a sequence of at least two p’s with JavaScript RegExp, use the p{2,} Quantifier.Example JavaScript Regular Expression var myStr = "Welcome 1, 10, 100, 1000"; var reg = /\d{2,}/g; var match = myStr.match(reg); document.write(match);

4K+ Views
In this tutorial, we will convert Boolean to Number in JavaScript. The Boolean is the variable's data type, which is supported by JavaScript like the other programming languages. The Boolean data type contains only two values, true and false. In some cases, programmers must convert the true or false value to the number. For example, using the strict equality operator to compare the Boolean value with the number variable. Here, using different operators, we have three methods to convert the Boolean to a number. Using the Number() Function In JavaScript, the Number() function is useful to convert any variable to ... Read More