Hi ..
I have an Iframe inside my html document like this –
<iframe id=”ifrm” name=”ifrm” src=””
scrolling=”Yes” align=”middle” frameborder=”1″
width=”80%” height=”100%” >
[Content for browsers that don’t support iframes goes here]
</iframe>
I have a function defined in javascript IsWithinGeofence()
which returns “1” or “2” ..or “6” which result when one of the “if” conditions inside the function are satisfied.
Now what I want to do is – I want to be able to use the function – IsWithinGeofence() return value in my iframe src.
e.g.
<iframe id=”ifrm” name=”ifrm” src=IsWithinGeofence + .html
scrolling=”Yes” align=”middle” frameborder=”1″
width=”80%” height=”100%” >
[Content for browsers that don’t support iframes goes here]
</iframe>
so that the iframe source becomes 1.html, 2.html ..and 6.html according to the function – IsWithinGeofence()’s return value.
How do I achieve this ??
Regards