Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > IE 6, javascript:void(0) stops the webpage loading

Reply
Thread Tools

IE 6, javascript:void(0) stops the webpage loading

 
 
jitendramr
Guest
Posts: n/a
 
      12-29-2005
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> tags), now i have added
onClick and blocked HREF using 'javascript:void(0)' as below:-

<a href="javascript:void(0)"
onClick="some_function('pagename')">Text</a>

Here 'some_function' is opening the 'pagename' in a new customised
window.

This page also contains a few images weighing 50kb. Now if I click the
<a> links before the images are loaded fully, following happens (on my
pc it works well but it happens when i test it online):-

1. The new page opens in a window as required
2. But the page loading is ABORTED and the images are not loaded.

More:-
This is not happening in FF 1.0.7

Need Help!

 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      12-29-2005
jitendramr wrote:


> I m facing a problem with 'javascript:void(0)'


A JavaScript which does ... nothing at all.

> Problem:-
> I have a webpage with several links (<A> tags), now i have added
> onClick and blocked HREF using 'javascript:void(0)' as below:-
>
> <a href="javascript:void(0)"
> onClick="some_function('pagename')">Text</a>


http://jibbering.com/faq/#FAQ4_24

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cause webpage one to reload when webpage two is closed. Paul ASP .Net 14 06-19-2008 03:02 PM
IE 6, javascript:void(0) stops the webpage loading Jitendra Javascript 14 12-31-2005 08:19 AM
check if a webpage is forwarding to a other webpage martijn@gamecreators.nl Python 1 09-06-2005 02:27 PM
Email contents of webpage or Form on webpage w/o using Server scripting sifar Javascript 5 08-24-2005 05:47 PM
Webpage stops loading when link is clicked. Jammer ASP General 1 09-21-2003 10:34 PM



Advertisments