-
You could write a cookie and read it back in. Here is a link to help you get started with that: http://www.quirksmode.org/js/cookies.html
-
Yes. Conditional statements using document.frameName.src or applying an id to the iframe and referencing that using something like:
var curr = document.getElementById('frameID');
curr.src;
if(curr.src == "http://somesite.com/")
{
curr.style.width = 400px;
curr.style.height = 400px;
}
<input type="text" value="default text" onfocus="this.value = ' ';" onblur="if(this.value == ' ')this.value='default text';" />