Javascript link

Run Javascript code from HTML link.

Link code:

<a href="javascript:void(0)" onclick="myfunc()">Run Script</a>

Javascript code:

<script>
   function myfunc() { alert('myfunc() run'); }
</script>

View:

Run Script

Javascript link

Link code:

<a href="javascript:void(0)" onclick="window.location.href='/en/web-design/html/html-link'">Link to page</a>

Link view:

Link to page

Selection link code:

<form name="selform">
<p><select name="linksel" onchange="OnSelChange()">
    <option>-- select page --</option>
    <option>HTML link</option>
    <option>Link color</option> 
    <option>Image link</option>
</select></p>
</form>
<script>
    function OnSelChange()
    {
        i = document.selform.linksel.selectedIndex;
        url = ['/en/web-design/html/html-link', '/en/web-design/html/html-link/html-link-color',
               '/en/web-design/html/html-link/html-image-link'];
        if( i>0 ) window.location.href = url[i-1];
    }
</script>

Selection view:

Javscript back link

Link code:

<a href="javascript:history.back()">Back</a>

Link view:

Back


Currently, we have around 935 calculators, conversion tables and usefull online tools and features to make your life easier or simply help you to do your work or duties faster and in more effective way. These below are the most commonly used by many users at all

And we are still developing more. Our goal is to become the one-stop, go-to site for people who need to make quick calculations or who need to find quick answer for basic conversions.

Additionally, we believe the internet should be a source of free information. Therefore, all of our tools and services are completely free, with no registration required. We coded and developed each calculator individually and put each one through strict, comprehensive testing. However, please inform us if you notice even the slightest error – your input is extremely valuable to us. While most calculators on Justfreetools.com are designed to be universally applicable for worldwide usage, some are for specific countries only.


This website uses cookies to improve your experience, analyze traffic and display ads. Learn more