View Full Version : get selected input field in iframe
I would like to know if there is a way to get the selected input field inside an Iframe from the parent window, is there any way to do that?
07-21-2009, 08:24 PM
var zValue = frameName.document.getElementById("inputFieldId").value;
sorry for not being clear.
I need to get the selected field that the user clicked on inside an iframe.
07-21-2009, 08:39 PM
you can do this in you iframe:
<input type="text" onclick="selectObject(this)"></input>
var curObject = null;
and then in your parent frame you do the following:
if(frameName.curObject != null)
var zValue = frameName.curObject.value;
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.