Daniol Thomas has Published 197 Articles

Selects all elements where the parent is a

Daniol Thomas

Daniol Thomas

Updated on 24-Jun-2020 06:27:50

663 Views

Use the element > element selector to select an element with a parent element.You can try to run the following code to select all elements where the parent is a element, ExampleLive Demo                    div > p { ... Read More

Add a color to the shadow with CSS

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 15:44:27

295 Views

To add a color to the shadow, use the box-shadow property and set the color, with the height and width.You can try to run the following code to set the color to shadow:ExampleLive Demo                    h2 {           ... Read More

Float List Items to the right with CSS

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 14:50:35

3K+ Views

To float the list items to the right, use float: right property in CSS. You can try to run the following code to implement it,ExampleLive Demo                    ul {             list-style-type: none;             margin: 0;             padding: 0;          }          li {             float: left;          }          li a {             display: block;             padding: 8px;             background-color: orange;          }                              Home          News          Contact          About          

What are undefined reference/unresolved external symbol errors in C++?

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 13:26:30

1K+ Views

As the name suggests, a symbol you declared was not defined by you. This may occur due to many cases. Let's have a look at three of them −You forgot to define the declared name. For example, you declared a function in a file and used it somewhere. But you ... Read More

Does use of anonymous functions affect performance?

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 12:58:03

333 Views

The usage of anonymous functions affect performance is the sense, you need to create a new function object at each iteration. Anonymous functions are always loaded using a variable name. Anonymous, as the name suggests, allows creating a function without any names identifier. It can be used as an argument ... Read More

What records are present in JavaScript cookies?

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 08:46:46

200 Views

Your server sends some data to the visitor's browser in the form of a cookie. The browser may accept the cookie. If it does, it is stored as a plain text record on the visitor's hard drive. Now, when the visitor arrives at another page on your site, the browser ... Read More

How to return a string representing the source for an equivalent Date object?

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 08:07:54

101 Views

To return a string representing the source for an equivalent Date object, use the JavaScript toSource() method. This method returns a string representing the source code of the object.ExampleYou can try to run the following code to return a string representing the source for an equivalent Date object −   ... Read More

With JavaScript Regular Expression find a non-whitespace character.

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 07:49:31

444 Views

To find a non-whitespace character, use the following −\SExampleYou can try to run the following code to find non-whitespace character −        JavaScript Regular Expression                        var myStr = "100% Responsive!";          var reg = /\S/g;          var match = myStr.match(reg);                    document.write(match);          

What are different Navigator properties I can use on my web page?

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 07:02:17

164 Views

can use several Navigator related properties in your Web page. The following are the properties −Sr.NoProperty & Description1appCodeNameThis property is a string that contains the code name of the browser, Netscape for Netscape and Microsoft Internet Explorer for Internet Explorer.2appVersionThis property is a string that contains the version of the ... Read More

How to set current time to some other time in JavaScript?

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 05:05:53

560 Views

You cannot do this with JavaScript since it takes the system time which displays the current date with Date object. However, you can change the current date by changing the timezone as in the following code −Example Live Demo                    var ... Read More

Advertisements