Oh sorry; I thought this was an entirely separate question. If you want a parent to control a child iframe you are going to need a communication mechanism using postMessage. There's a few examples if you search for this term on the forums. One example here (it is child to parent, but uses the same technique):
The other alternative might be to use this technique with the iframe src (but I haven't tried it in such a way):