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 in Java by Soham
• 8,730 points
33 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 by Rahul
• 8,980 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 in Java by Rahul
• 2,540 points
11 views
0 votes
1 answer

What does [object Object] mean? (JavaScript)

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

answered Feb 22 in Java by Aditya
• 7,280 points
39 views
0 votes
1 answer

What does NaN mean in Java?

"NaN" stands for "not a number". "Nan" ...READ MORE

answered Jul 12, 2018 in Java by Akrati
• 960 points
692 views
0 votes
1 answer

What does Animal a = (Animal) data[0]; do?

Hello @zaraaq , You can refer this for your ...READ MORE

answered Dec 2, 2020 in Java by Niroj
• 82,680 points
112 views
0 votes
1 answer

What does “Could not find or load main class” mean?

First of all, you need to understand ...READ MORE

answered Dec 22, 2020 in Java by Gitika
• 65,850 points
239 views
0 votes
1 answer

What does Java option -Xmx stand for?

-Xmxn: It specifies the maximum size, in bytes, ...READ MORE

answered May 9, 2018 in Java by sharth
• 3,350 points
826 views
0 votes
1 answer

what does javabean actually means?

A JavaBean is just a standard All properties ...READ MORE

answered Jun 7, 2018 in Java by anonymous
139 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
515 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 in Java by Rahul
• 8,980 points
559 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 in Java by Rahul
• 8,980 points
45 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP