Classified Sites List Classified Sites List List of Making Back-links

1. Australia Classified Sites

2. Canada Classified List

3. UK Classified Sites

4. USA Classified Sites List

1. UAE Classified Sites List

2. Indian Classified Sites List

3. Pakistani Classified Sites List

4. Bangladeshi Classified Sites List

1. High PR Do-follow Guest Posting Sites list

2. 20 High PR Social Networking Site List 2016

3. PR-5 Do Follow Social Bookmarking Site list 2016

4. Do-follow Social Bookmarking Website list 2016

5. 100 High Page Rank Do-follow Social Bookmarking lists 2016

6. Directories Submission Sites List

7. Articles Submission Sites List

Which is the best way to use value for loading JavaScript link “#” or javascript:void(0)”?

Going to discuss which href value is best for load JavaScript function “#” or  javascript:void(0)”?. Here there are two methods available which you can use when user click on the link the JavaScript function execute.

1. Load JavaScript function by using “#” in href value.

<a href=”#” onclick=”yourJsFnc();”>Execute JavaScript Code</a>

2. Load JavaScript function by using “javascript:void(0)” in href value.

<a href=”javascript:void(0)” onclick=”yourJsFunc();”>Execute JavaScript Code</a>

Two reasons why you not used “#” in href value. (href=”#”) ?

1. Load function by using href=”#” and the function return some value and do something then function return task will not execute.

function doSomething() {
    //Some code
    return some-value; // not be executed
2. Another reason is that if calling function throw any exception or error the return statement is not executed. So must solved any error you may know occur during the execution of calling function.

So avoid all problems discuss in the post you should use javascript:void(0) in href value to load or execute JavaScript function.


About Moazzam Qureshi

I am SEO expert and web developer since 2011. My hobby is to write & provides quality content about blogging, SEO , Social Media , Earn Online and Affiliate Marketing.