Is there a way to read params values directly into NPAPi plugin?
Here is the current JS and form code:
<script>
var control = document.getElementById('embed');
</script>
<form name="formname">
<input type=button value="Inc name" onclick='embed.name="albert";'>
<input type=button value="Inc phone" onclick='embed.phone="123456";'>
</form>
This method successfully passes embed.name
and embed.phone
values to the dll.
Is it possible to set params directly with JavaScript in a similar manner without using a form or onClick event like this:
<EMBED id="embed" TYPE="application/x-plugin" ALIGN=CENTER WIDTH=400 HEIGHT=300>
<param name="name" value="albert" />
<param name="phone" value="123456" />
</EMBED>