- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 8895 Articles for Front End Technology
![Shubham Vora](https://www.tutorialspoint.com/assets/profiles/485898/profile/60_1456867-1657516792.jpeg)
922 Views
This tutorial will teach us to show a euro or HTML entity in JavaScript alert Window. There are three pop-up windows in JavaScript. Alert box, Confirm box, and Prompt box. The alert box is useful to show some information to the user, such as a welcome message or user’s info. It contains the ok button, and when the user clicks on that, it closes. The confirm box is used to show the confirmation message. In many applications, you have seen that when you try to delete something, it shows the confirmation message. When you click on the ok, it returns ... Read More
![radhakrishna](https://www.tutorialspoint.com/assets/profiles/13544/profile/60_40618-1512640354.jpg)
1K+ Views
The window.location object can be used to get the current URL.window.location.href property returns the href (URL) of the current page. We could also use window.location or location in place of window.location.href.We could also use document.documentURI and document.URL properties.document.documentURI returns the location of the document as a string.document.URL returns the URL of the document as a string.Let’s understand how to get the current URL with JavaScript using the above properties with the help of program examples.Example 1 − Using window.location.href property.In this example we use window.location.href to get the current URL. In below example you can try using window.location or location ... Read More
![mkotla](https://www.tutorialspoint.com/assets/profiles/13540/profile/60_41073-1512640012.jpg)
3K+ Views
With JavaScript, to set more than one cookie, set document.cookie more than once using the; separator.ExampleYou can try to run the following code to set multiple cookies −Live Demo var num=1; function addCookie() { document.cookie=num+"="+num; num++; } function listCookies() { var result = document.cookie; document.getElementById("list").innerHTML=result; } function removeCookies() { var res = document.cookie; var multiple = res.split(";"); for(var i=0;i
![Paul Richard](https://www.tutorialspoint.com/assets/profiles/13505/profile/60_52698-1512536733.jpg)
1K+ Views
To mark superscripted text in HTML, use the … tag. Just keep in mind both the opening and closing tag is mandatory while using the ... tag.The superscript text appears to be half a character above the normal line. It is displayed as a smaller font.You can try the following code to mark superscripted text in HTML. Here, we are writing the value 2 4 using the tag, HTML text superscript Heading Value: 2 4 = 16 Output
![Krantik Chavan](https://www.tutorialspoint.com/assets/profiles/13545/profile/60_126883-1512724834.jpg)
222 Views
The new keyword in JavaScript is the new operator, which creates an instance of a user-defined object type.ExampleYou can try to run the following code to create JavaScript objects using new operator −Live Demo var dept = new Object(); dept.employee = "Amit"; dept.department = "Technical"; dept.technology ="Java"; document.getElementById("test").innerHTML = dept.employee + " is working on " + dept.technology + " technology."; OutputAmit is working on Java technology.
![Lokesh Badavath](https://www.tutorialspoint.com/assets/profiles/538106/profile/60_1039031-1666073315.jpg)
274 Views
The to be inserted is marked with an underline. Underlined text is used to help draw attention to the text. We use the tag, to mark a text in HTML. It represents a text in a different style from another text in the content of the web page. We can also use the style attribute, to mark a text in HTML. The style attribute specifies an inline style for an element. This attribute is used inside the HTML tag, with the CSS property text-decoration property. Syntax Following is the syntax for the tag. The text to be ... Read More
![Lokesh Badavath](https://www.tutorialspoint.com/assets/profiles/538106/profile/60_1039031-1666073315.jpg)
23K+ Views
We use inline style attribute, to set the table width in HTML. The attribute is used within the HTML tag, with the CSS property width to set table width. Syntax Following is the syntax to set table width in HTML. … Example Following is the example program to set table width in HTML. DOCTYPE html> table { border:1px solid black; padding: 10px; ... Read More
![Sai Subramanyam](https://www.tutorialspoint.com/assets/profiles/13512/profile/60_68191-1512710774.jpg)
9K+ Views
To mark strikethrough text in HTML, use the … tag. It renders a strikethrough text. HTML deprecated this tag and it shouldn’t be used in HTML5. As an alternative, use the CSS text-decoration property.To use the CSS property, use the style attribute. The style attribute specifies an inline style for an element. The attribute can be used with the HTML tag. Just keep in mind, HTML5 does not support the tag, so the CSS style should be used.ExampleYou can try to run the following code to mark strikethrough text in HTML HTML Strikethrough text ... Read More
![Lokesh Badavath](https://www.tutorialspoint.com/assets/profiles/538106/profile/60_1039031-1666073315.jpg)
1K+ Views
We use tag, to delete a text in HTML. This tag mark strike on the text which is to be delete from the document. We can also use the style attribute, to strike a text in HTML. The style attribute specifies an inline style for an element. This attribute is used inside the HTML tag, with the CSS property text-decoration property. Syntax Following is the syntax to delete a text in HTML. The content to be deleted Example Following is the example program to delete a text in HTML. DOCTYPE html> ... Read More
![Lokesh Badavath](https://www.tutorialspoint.com/assets/profiles/538106/profile/60_1039031-1666073315.jpg)
69K+ Views
Underlined text is used to help draw attention to the text. We use the tag, to underline a text in HTML. It represents a text in a different style from another text in the content of the web page. We can also use the style attribute, to underline a text in HTML. The style attribute specifies an inline style for an element. This attribute is used inside the HTML tag, with the CSS property text-decoration property. Syntax Following is the syntax to underline a text in HTML. The content to be underlined Example Following is the ... Read More