Resizing frame after email submit?

ultimatium1

Junior Member
Oct 10, 2008
107
19
Hey guys, I was just wondering, Isit possible to resize the frame after some1 has submitted their email? Seeing as the ifame is not located on your domain I dont think you can see inside the frame to detect wats been inserted inside the textfield.

Im guessing soemthing could be done to detect the frame SRC and wen it changes it will resize the frame etc... Maybe some JS guru here can test it or has a script already

Thanks for any help!
 
Code:
<html>
<head>
<script language="JavaScript" type="text/javascript">
<!--
function ReSize(id,h,src,tb){
 var obj=document.getElementById(id);
 obj.style.height=h+'px';
 obj.src=src;
 document.getElementById(tb).value='Height '+h+'px';
}
//-->
</script>
</head>
<body>

<input type="submit" value="submit" id="L1" onclick="ReSize('Tst',600,'http://www.yahoo.com','TB1');" /><br>

<iframe id="Tst" src="http://www.google.com" width="500" height="200"></iframe>
</body>

</html>

Copy and paste into Notepad. Save as "test.html" to your desktop to preview. Tested in IE6 and FF3 but obviously need to see your own code to know what you're trying to accomplish
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock