If you only need access in javascript, you can use hash .
iframe.src="http://foo.bar/#arg1=1&arg2=2";
and then on the page you just fetch them from location.hash.substring(1) .
this is the boilerplate code for turning these arguments into a "map":
(from my easyXDM library)
var query = (function(input){ input = input.substring(1).split("&"); var data = {}, pair, i = input.length; while (i--) { pair = input[i].split("="); data[pair[0]] = decodeURIComponent(pair[1]); } return data; }(location.hash); query.arg1;
source share