ജാവാസ്ക്രിപ്റ്റ് ലിങ്ക്

HTML ലിങ്കിൽ നിന്ന് ജാവാസ്ക്രിപ്റ്റ് കോഡ് പ്രവർത്തിപ്പിക്കുക.

ലിങ്ക് കോഡ്:

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

ജാവാസ്ക്രിപ്റ്റ് കോഡ്:

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

കാണുക:

സ്ക്രിപ്റ്റ് പ്രവർത്തിപ്പിക്കുക

ജാവാസ്ക്രിപ്റ്റ് ലിങ്ക്

ലിങ്ക് കോഡ്:

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

ലിങ്ക് കാഴ്ച:

പേജിലേക്കുള്ള ലിങ്ക്

 

തിരഞ്ഞെടുക്കൽ ലിങ്ക് കോഡ്:

<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 = ['../html/html-link.htm', '../html/link/html-link-color.htm',
               '../html/link/html-image-link.htm'];
        if( i>0 ) window.location.href = url[i-1];
    }
</script>

തിരഞ്ഞെടുക്കൽ കാഴ്ച:

Javscript ബാക്ക് ലിങ്ക്

ലിങ്ക് കോഡ്:

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

ലിങ്ക് കാഴ്ച:

തിരികെ

 

 


ഇതും കാണുക

Advertising

ജാവാസ്ക്രിപ്റ്റ്
ദ്രുത പട്ടികകൾ