I am trying to make a img that when it is clicked a JavaScript function is called.
I have searched on the web but haven't found anything that actually works (prob because of a mistake I made).
This code was made to pass JavaScript variables to a c# application.
Can anybody tell me what I am doing wrong?
<script type="text/javascript">
function exportToForm(a,b,c,d,e) {
window.external.values(a.value, b.value, c.value, d.value, e.value);
}
</script>
</head>
<body>
<img onclick="exportToForm('1.6','55','10','50','1');" src="China-Flag-256.png"/>
<button onclick="exportToForm('1.6','55','10','50','1');" style="background-color: #00FFFF">Export</button>
</body>