< html >
< head >
< script >
function myFunction (data)
{
alert ("data");
}
< / script >
< / head >
< body >
< button onclick= "myFunction ()" > Click here < / button >
< / body >
< / html >
this js is written in the html code, and I"m going to pass the data into the js function in the html code from the imported js file.
what should I do? Due to special requirements, this js should be written in html, but the data does not know how to transfer from the external js.
Thank you.