473,320 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

explain me javascript:void(0)

dmjpro
2,476 2GB
plz explain in details about javascript:void(0)

any help is most welcome ...............
Mar 1 '07 #1
3 2655
r035198x
13,262 8TB
plz explain in details about javascript:void(0)

any help is most welcome ...............
Use it when you dont't want to load a page when a link is clicked.

The important thing to know is that if you use a Javascript statement as the URL that returns a value the browser will attempt to load a page.

To prevent this you need to use the void function on such statement, which will always return null and never load a new page.
Mar 1 '07 #2
dmjpro
2,476 2GB
thanx for ur reply .....

can't u give me link ......

thanx in advance
Mar 1 '07 #3
acoder
16,027 Expert Mod 8TB
Here's a link.

However, it is sometimes (maybe all the time) better not to use it not only because it causes problems in IE, but also because it is not the recommended way and not best practice. If you want to avoid following the link, set the href to a local fall-back page and in the onclick, have "return false" at the end. You will achieve the same effect with the addition that it won't break if the user has javascript turned off. See this link.
Mar 1 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Michael | last post by:
Hallo I have the following problem: Within a web application I have to access the Java methods from JavaScripts. I'm using Sun's Java virtual machine version 1.3.1. Webbrowser is Microsoft...
4
by: Iver Erling Årva | last post by:
I have an application that uses a window.open() to open it's own main window where all my programs takes place. I use a timeout so if nothing goes on for 15 minutes the document below is called. To...
9
by: Astra | last post by:
Hi everybody Wonder if you could help me out. I created a simple JavaScript routine to enable a user to click backwards and forwards between small news articles. This routine works fine in IE...
13
by: Jitendra | last post by:
Hi! I m facing a problem with 'javascript:void(0)' Software Environ:- IE: 6.0.2600.0000 OS: Windows 2000 Professional with Service Pack 4 Problem:- I have a webpage with several links (<A>...
8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
3
by: buhailiang | last post by:
I've a 'TEST' link on page, which has href='javascript: void(0)', and a big iframe page. When I load the page, window.onload event is triggered after the big iframe page loaded, If I click the...
4
by: clutz | last post by:
I recently have been unable to access video on my pc due to a javascript void message. I have spoken to techs and we went through the same things over and over. Making sure javascipt is enable,...
1
by: 5bfree | last post by:
Gateway, Windows XP, IE7. How do I fix a javascript void error? Already tried the easy stuff; make sure its enabled, restart, etc. Thanks.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.