iframe src based on javascript variable value

Posted by Ra on Stack Overflow See other posts from Stack Overflow or by Ra
Published on 2010-04-30T08:56:55Z Indexed on 2010/04/30 9:07 UTC
Read the original article Hit count: 259

Filed under:
|
|

Hi,

I have a Iframe, and how to pass a javascript vairable to along with a iframe src.

ex:
var param1=test1;

how to pass "param1" value along with the iframe url. and i want to pass like this.

<iframe frameborder=0 src="http://cart.demo.com/c_jp.php?action=param1" name="navigationframe" id="navigationframe" width="220" height="800">

Thanks in advance.

© Stack Overflow or respective owner

Related posts about iframe

Related posts about html