Sorry typo, should be (also corrected in my previous post, I said it wasn't tested):
Code:
<script type="text/javascript">
if(getQueryVariable("id")){
document.write('<iframe src="index.html?id=' + getQueryVariable("id") + '"></iframe>');
} else {
document.write('<iframe src="index.html"></iframe>');
}
</script>
<noscript>
<iframe src="index.html"></iframe>
</noscript>
But why would you want to do this? What's happening on index.html that you need javascript to supply it with a query string?
Oh, and by the way, this line in the getQueryVariable() function:
Code:
alert('Query Variable ' + variable + ' not found');
For production, that line should probably be:
Bookmarks