Friday, August 16, 2013

Dynamically change iframe src query string using javascript

Some timewe need to assign iframe src query string dynamically. For that we can use document.writeln javascript method. Using window.location.search will give you the query string value. So you need to assign that value to iframe in page load.

HTML Code:


<html>
<script type="text/javascript">
document.writeln('');
</script>
</html>

No comments: