How to call a javascr+B6181ipt function in html ?

Asked By 10 points N/A Posted on -
qa-featured

I have made a login form in html. I want to execute a javascript function on submission of html form. I have declared following question:

<script type="txt/javascript" language="javascript">

function LoginChk()

{

// code //

}

</script>

can someone tell me how to call this javascript function ?

SHARE
Best Answer by Mcbride Lippincott
Answered By 0 points N/A #158522

How to call a javascr+B6181ipt function in html ?

qa-featured

Hi

I am giving a solution to call a JavaScript function in html ,This tag creates a button as submit,on clicking submit button it automatically calls your function LoginChk

Try this.

<input name="Submit" type="button" id="Submit" onclick="LoginChk(this.form)" value="Submit" />

Best Answer
Best Answer
Answered By 10 points N/A #158523

How to call a javascr+B6181ipt function in html ?

qa-featured

Hello Manindertoor,

For your concern, you  must  have one JavaScript element to load the external JavaScript, and also have another one to include your function call JavaScript.

For more information and details of your concern, kindly look at this JavaScript Functions , it will specify and explain the JavaScript functions that will be useful for you.

Login/Register to Answer

Related Questions