BuilderSpec
Programmer
Hi
I have some ASP pages that do simple stuff.
<%
Dim i
i = 4
%>
.
.
.
<%=i%>
How would i translate this to javascript ?
I have got :
<script>
function GetInfo()
{
var i=4;
document.write(i)
}
</script>
But how do i call this function in the middle of my page ? I want the page to say something like
Amount Available : 4 ( where the 4 comes from the script etc )
PS Know it's a simple example it's the principle i am after.
Thanks
Have looked on net but all examples seem to call functions as a result of button presses. i just want simple variable substitution like ASP but in JAVASCRIPT
Any help appreciated thanks
Hope this helps!
Regards
BuilderSpec
I have some ASP pages that do simple stuff.
<%
Dim i
i = 4
%>
.
.
.
<%=i%>
How would i translate this to javascript ?
I have got :
<script>
function GetInfo()
{
var i=4;
document.write(i)
}
</script>
But how do i call this function in the middle of my page ? I want the page to say something like
Amount Available : 4 ( where the 4 comes from the script etc )
PS Know it's a simple example it's the principle i am after.
Thanks
Have looked on net but all examples seem to call functions as a result of button presses. i just want simple variable substitution like ASP but in JAVASCRIPT
Any help appreciated thanks
Hope this helps!
Regards
BuilderSpec