I have an HTML page that is displayed in a WebBrowser, and contains a JavaScript for DialogColor. I would like to retrieve the HTML color by pressing a button that is inside my NB app. I've prepared a RAR file with the HTML file and the script (jscolor.js).
Download link (14 Kilo) : http://we.tl/Gh26omhB7U
I do not know how to get the currently selected color in the Text Input by pressing a NB button. A script (nbSetVar) has been integrated into the HTML page, but I do not know what command I have to put in the NeoBook button to retrieve the color.
Code: Select all
<script>
function getColor() {
window.external.nbSetVar('[SkyBoxBGColor]', document.getElementById('color').value);
}
</script>
Code: Select all
<input class="color" value="1CC2FF">
Thank you to all.
UltraVox