What is the difference between the two?
-
What is the difference between the two? I know they produce the same result but why different way of doing the things and whch one is better. Test [Test](javascript : void(0)) Ranjan Goyal
There is actually a slight difference, it just isn't that apparent. If you link to #, the page will refresh as the new window opens. Depending on the browser, the parent page may scroll back up to the top as well. If you link directly to the javascript command, the parent window is "untouched". - Rock on!
-
There is actually a slight difference, it just isn't that apparent. If you link to #, the page will refresh as the new window opens. Depending on the browser, the parent page may scroll back up to the top as well. If you link directly to the javascript command, the parent window is "untouched". - Rock on!