lrhb
March 30th, 2005, 02:30 PM
Hi there! I've got this bit of script for resizing iframes:
function loadIframe(iframeName, url) {
if ( window.frames[iframeName] ) {
window.frames[iframeName].location = url;
return false;
}
else return true;
}
if I want to define the iFrameName variable manually instead of passing it, and my iframe name is, say, content, should it look something like this?:
window.frames.content.location = url;
Thanks in advance! I don't know much about JavaScript but it looks smashingly similar to ActionScript... however you can never be sure...
- lrhb :hat:
function loadIframe(iframeName, url) {
if ( window.frames[iframeName] ) {
window.frames[iframeName].location = url;
return false;
}
else return true;
}
if I want to define the iFrameName variable manually instead of passing it, and my iframe name is, say, content, should it look something like this?:
window.frames.content.location = url;
Thanks in advance! I don't know much about JavaScript but it looks smashingly similar to ActionScript... however you can never be sure...
- lrhb :hat: