- 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 8894 Articles for Front End Technology
1K+ Views
In this tutorial, we will learn how to play a multimedia file using JavaScript. The multimedia file is the audio and video files. The multimedia files can be of different formats. wav and mp3 are two examples of audio file formats, whereas mp4 and mkv are examples of video file formats. In HTML, multimedia files can be shown easily using different tags. We use the video tag for showing a video, and for audio, we use the audio tag. These two tags are quite similar, and many attributes are the same in both tags. The "src" attribute defines the path ... Read More
481 Views
A Document object represents the HTML document that is displayed in that window. The Document object has various properties that refer to other objects, which allow access to and modification of document content.The way a document content is accessed and modified is called the Document Object Model, or DOM. The Objects are organized in a hierarchy. This hierarchical structure applies to the organization of objects in a Web document.Window object − Top of the hierarchy. It is the utmost element of the object hierarchy.Document object − Each HTML document that gets loaded into a window becomes a document object. The document ... Read More
3K+ Views
In this tutorial, we will discuss plugins in JavaScript. So what is a plugin? A plugin is a JavaScript code written in a file. This file supplies various methods that we can use for various purposes. A plugin has an entry in the array. An entry has following properties − name − The name is the plugin name. filename − filename is the executable file loaded to install the plugin with the extension. description − description is the developer's(manufacturer's) description of the plugin. mimeTypes − mimeTypes is an array with one entry for each MIME type that the plugin ... Read More
788 Views
To list down all the plug-on installed in the web browser, use the JavaScript navigator object. The JavaScript navigator object includes a child object called plugins. This object is an array, with one entry for each plug-in installed on the browser.ExampleYou can try to run the following code to list down all the plug-in installed in your browser − List of Plug-Ins Plug-in Name Filename Description for (i = 0; i < navigator.plugins.length; i++) { document.write(""); document.write(navigator.plugins[i].name); document.write(""); document.write(navigator.plugins[i].filename); document.write(""); document.write(navigator.plugins[i].description); document.write(""); }
343 Views
Generally, animation in JavaScript is done to get different effects and make the object move around the page. You can move and animate any type of HTML element using manual or automated animations in JavaScript. In this tutorial, we will learn how to differentiate between manual and automated animation in JavaScript. Manual Animation Before explaining the difference between the two common types of animation used in JavaScript, we must learn the process of animating objects manually. Under Manual Animation, the animation process is not automated. The following is the implementation of a simple animation using DOM object properties and ... Read More
214 Views
If you have set a time using setTimeout() function, then you can clear it using the JavaScript clearTimeout() function.ExampleYou can try to run the following code learn how to implement clearTimeout() function in JavaScript − JavaScript Animation Click the buttons below to handle animation
145 Views
You can use several Navigator related properties in your web page. The following are the properties −Sr.NoProperties & Description1javaEnabled()This method determines if JavaScript is enabled in the client. If JavaScript is enabled, this method returns true; otherwise, it returns false.2plugings.refreshThis method makes newly installed plug-ins available and populates the plugins array with all new plug-in names. Netscape only.3preference(name, value)This method allows a signed script to get and set some Netscape preferences. If the second parameter is omitted, this method will return the value of the specified preference; otherwise, it sets the value. Netscape only.4taintEnabled()This method returns true if data tainting ... Read More
204 Views
The code while using anonymous functions is more readable when handlers are to be defined inside the calling code. Anonymous functions are declared inline. Normally, inline functions are better since they can access variables in the parent scopes.It allows for creating a function without any names identifier. It can be used as an argument to other functions. You can call them using a variable name.This is how JavaScript anonymous functions can be used −var func = function() { alert(‘This is anonymous'); } func();Here’s an example −//anonymous function var a = function() { return 5; }
441 Views
To debug JavaScript on the iPad, you need to open the Safari browser.Now enable Web Inspector in iOS. In the Settings app, select Safari. Tap the Advanced option and start Web Inspector −Now select Web Inspector −Use a USB cable to connect the iPad to Mac. Safari opens and your iPad now visible in the DEVELOP Menu. After selecting, start debugging JavaScript.
282 Views
To debug CSS/JavaSript hover issues, you need to follow the below-given steps, Press F12 to open Inspect Element, in Firefox. In the DOM view right-click the element, and Select :hover, :active or :focus at the bottom of the context menuThe following screenshot shows how to debug hover issues −