pass single value to three diffrent iframe [closed]

<script type="text/javascript">
function loadVal(val) {
  window.frames[0].location='somehtml.html?val="+val;
  window.frames[1].location="somehtml.html?val="+val;
  window.frames[2].location="somehtml.html?val="+val;
  return false;
}
</script>

<a href="#" onClick="return loadVal("This is a value')">Click</a>

In the receiving pages you can get the value from location.search

Leave a Comment