View Full Version : Setting Values of Input Box in Iframes via Javascript

05-06-2009, 09:41 PM

I have a a framed page which have two frames.

First frame have two iframes and second frame also have two iframes.

Each iframe have a form to add record. Each forms have some fields to enter data.

To show the layout of the page, I have created a picture.

Please go through this layout picture at this link: http://docs.google.com/Doc?id=dff38n8b_0c5nb9bcs

I have set the following javascript variables in the <head> tag of "leftframe.htm" which represents frame "leftframe"

<script type="text/javascript">
var studentFirstName = "";
var studentLastName = "";
var studentEmailID = "";
var studentScore ="";
var studentCountry="";
var studentEducation="";
var studentSkills="";
var studentHeight="4 Foot 6 Inch.";
var studentWeight="45 Kilogram";

Now I want to set the value of these variable to the input box (text box) of these forms in different iframes.

Please help me in this regard.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum