View Full Version : triggering function from iframe
04-08-2009, 11:52 PM
i remember there being a way to trigger a function on the parent page from a button/link in an iframe. does anyone know the syntax? or what section of w3schools i should look at?
04-10-2009, 11:18 PM
well, since noone is gonna reply... i figured it out by MYSELF!
you can grab any object, id, name, anything from the main page via an iframe.
all you do is: on the iframe you have function that says:
parent.document.getElementById('id').innerHTML ="****ing bull****";
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.