Calling function from another javascript in html -
i have html input button calling function
<button class="go" onclick="go();" disabled><div class="inner first">nah...not yet</div></button>
but script created in javascript code name "test.js"
function go() { window.location.href = 'https://google.com'; }
how should input scriptype input button in order call function?
you should add tag in html, , fine
<script type="text/javascript" src="test.js">
Comments
Post a Comment