What does javascript void 0 mean

0 votes

What do certain hrefs mean exactly?
For the same objective, one can use href="javascript:" But however, for the earlier and outdated internet softwares versions, the void(0) part was used where the URL methods of Javascript were different. The respective IE7 manages and works precisely wherein the shorthand was not functional. 

  • I've also seen href="javascript://", is this better? –
    href="javascript://" is not working for me void(0) works perfectly. 

  •  Which browser did you use back then? href="javascript://" and href="javascript:void(0)" are equivalent. // is a JS comment.

Feb 8, 2022 in Java by Soham
• 9,710 points
932 views

1 answer to this question.

0 votes
The href of the link helps with the redirection of the internet with the use of the Javascript URL to a normal plain version of the text with the evaluating result of the Javascript. However, the internet application stays on the same given page without a defined result. The void(0) term is a minimal and easy script that evaluates to the undefined.
answered Feb 8, 2022 by Rahul
• 9,680 points

Related Questions In Java

0 votes
0 answers

What does "javascript:void(0)" mean?

<a href="javascript:void(0)" id="loginlink">login</a> I've seen such hrefs many ...READ MORE

Apr 14, 2022 in Java by Rahul
• 3,380 points
609 views
0 votes
1 answer

What does [object Object] mean? (JavaScript)

To answer your question, what this means ...READ MORE

answered Feb 22, 2022 in Java by Aditya
• 7,680 points
2,519 views
0 votes
0 answers

What does [object Object] mean? (JavaScript)

One of my notifications had the follo ...READ MORE

Sep 22, 2022 in Java by Nicholas
• 7,760 points
500 views
0 votes
0 answers

What does document.forms mean in javascript?

What do the terms document.cookie, document.forms, and.value ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
655 views
0 votes
1 answer

What does the function then() mean in JavaScript?

The then() method is similar to "Javascript ...READ MORE

answered Nov 4, 2022 in Java by Damonlang
• 700 points
779 views
0 votes
1 answer

What is ?: this operator called in java ? how dose it function?

? :  is the Conditional operator and is ...READ MORE

answered Jun 11, 2018 in Java by sophia
• 1,400 points
906 views
0 votes
1 answer

What does "javascript:void(0)" mean?

After evaluating the provided expression, the void ...READ MORE

answered Sep 20, 2022 in Java-Script by Abhinaya
• 1,160 points
1,026 views
0 votes
0 answers

What does "javascript:void(0)" mean?

<a href="javascript:void(0)" id="loginlink">login</a> ...READ MORE

Sep 20, 2022 in Java by Nicholas
• 7,760 points
560 views
0 votes
1 answer

window.location.href and window.open () methods in JavaScript

To answer your question, first of all, ...READ MORE

answered Feb 9, 2022 in Java by Rahul
• 9,680 points
11,993 views
0 votes
1 answer

This page didn't load Google Maps correctly. See the JavaScript console for technical details

The solution to your query is relatively ...READ MORE

answered Feb 11, 2022 in Java by Rahul
• 9,680 points
748 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP