Browser Widget JavaScript pass parameters

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Browser Widget JavaScript pass parameters

AndyP
This post was updated on .
If you have the JavaScript in a browser widget "Browser1" for example,

1. how would you pass the parameters/variables a and b to the script
2. how would you get the value x back from the script

<!DOCTYPE html>
<html>
<body>

<p>A typical arithmetic operation takes two numbers (or variables) and produces a new number.</p>

<p id="demo"></p>

<script> var a = 100; var b = 50; var x = a + b; document.getElementById("demo").innerHTML = x; </script>
</body>
</html>
Andy Piddock

My software never has bugs. It just develops random features.

TinyIDE a Free alternative minimalist IDE Plugin for LiveCode

Script editor Themer for LC http://2108.co.uk

PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode