Jai Janardhan

Jai Janardhan

40 Articles Published

Articles by Jai Janardhan

40 articles

How to work with document.embeds in JavaScript?

Jai Janardhan
Jai Janardhan
Updated on 15-Mar-2026 218 Views

The document.embeds property in JavaScript provides access to all elements in an HTML document. It returns an HTMLCollection containing all embed elements, which is useful for managing embedded content like videos, audio files, or plugins. Syntax document.embeds document.embeds.length document.embeds[index] document.embeds.namedItem(name) Basic Example Here's how to count and access embed elements in a document: Document Embeds Example ...

Read More

How to set whether the style of the font is normal, italic or oblique with JavaScript?

Jai Janardhan
Jai Janardhan
Updated on 15-Mar-2026 169 Views

To set the style of the font in JavaScript, use the fontStyle property. This property accepts three values: normal, italic, and oblique. Syntax element.style.fontStyle = "normal" | "italic" | "oblique"; Example: Setting Font Style to Italic This is Demo Text. This is Demo Text. This is Demo Text. This is Demo Text. This is Demo Text. This is Demo Text. This is Demo Text. This ...

Read More

How to set the position of the list-item marker with JavaScript?

Jai Janardhan
Jai Janardhan
Updated on 15-Mar-2026 244 Views

To set the position of the marker of the list-item, use the listStylePosition property in JavaScript. This property determines whether the list marker appears inside or outside the list item's content flow. Syntax element.style.listStylePosition = "inside" | "outside" | "inherit"; Parameters Value Description inside Marker is positioned inside the list item's content box outside Marker is positioned outside the list item's content box (default) inherit Inherits the value from parent element Example: Interactive List Position ...

Read More

How to set the right margin of an element with JavaScript?

Jai Janardhan
Jai Janardhan
Updated on 15-Mar-2026 654 Views

Use the marginRight property in JavaScript to set the right margin of an element. This property accepts values in pixels, percentages, or other CSS units. Syntax element.style.marginRight = "value"; Example #myID { border: 2px solid #000000; background-color: #f0f0f0; padding: 10px; } ...

Read More

How -Infinity is converted to Boolean in JavaScript?

Jai Janardhan
Jai Janardhan
Updated on 15-Mar-2026 240 Views

In JavaScript, -Infinity is considered a truthy value and converts to true when converted to Boolean. This might be surprising since negative infinity seems conceptually "negative, " but JavaScript treats all non-zero numbers (including infinities) as truthy. Using Boolean() Constructor The Boolean() constructor explicitly converts values to their boolean equivalent: Convert -Infinity to Boolean var myVal = -Infinity; document.write("Boolean: ...

Read More

How to create a table caption with JavaScript DOM?

Jai Janardhan
Jai Janardhan
Updated on 15-Mar-2026 652 Views

To create a table caption using JavaScript DOM, use the createCaption() method on a table element. This method adds a element to the table, which displays as a title above the table content. Syntax table.createCaption() Return Value Returns the newly created element, which can be styled or modified with text content. Example Here's how to create a table caption dynamically using JavaScript: function captionFunc(x) { ...

Read More

How to set the favicon size in CSS rather than HTML attributes?

Jai Janardhan
Jai Janardhan
Updated on 15-Mar-2026 3K+ Views

A favicon is a small icon visible on the web browser tab, just before the page title. It is generally a logo with a smaller size representing your website's brand. Setting Favicon Size You cannot set the favicon size using CSS properties. The web standards do not support controlling favicon dimensions through CSS. Instead, you must specify the size using HTML attributes in the element. Syntax Example: Adding Favicon with Size Attribute The following example shows how to properly add a favicon with specified dimensions using HTML attributes − ...

Read More

Finding and modifying Service File for SAP system in root directory

Jai Janardhan
Jai Janardhan
Updated on 13-Mar-2026 799 Views

You can find the SAP system service file in %SystemRoot%\system32\drivers\etc where %SystemRoot% is generally your C:\ drive. This file is commonly known as the hosts file or services file, which contains network service definitions and host mappings for SAP system connections. Modifying the Service File To modify this file, you can right-click and open this file in Edit mode using Notepad. To perform this operation, you must have Administrator rights in the system, as this file is protected by Windows security settings. ...

Read More

Using Breakpoint in SAP system

SAP
Jai Janardhan
Jai Janardhan
Updated on 13-Mar-2026 258 Views

In SAP systems, breakpoints are used to pause program execution at specific points during debugging. There are two main ways to implement breakpoints in your ABAP code. Syntax For user-specific breakpoints, use the following syntax − BREAK username. If you want to implement it for all users, you can use − BREAK-POINT. User-Specific Breakpoint The BREAK username statement creates a breakpoint that only activates when the ...

Read More

Viewing field names or tables names of the forms in SAP Business One

Jai Janardhan
Jai Janardhan
Updated on 13-Mar-2026 1K+ Views

It is possible that the older version of SAP B1 may not show you all the fields of all the forms. If you have the latest version, you should be able to see the data sources that are mapped to given field. You need to open the forms in SAP Business One Studio. There are a couple of methods to view fields. Method 1: Using SAP Business One Studio Integration This method allows you to directly edit forms from within SAP Business One using the integrated Visual Studio environment ...

Read More
Showing 1–10 of 40 articles
« Prev 1 2 3 4 Next »
Advertisements