<script>
window.onload = function () {
   var q = (document.location.search);
   document.getElementById('mainFrame').src += q;
}
</script>