You are here: irt.org | FAQ | JavaScript | Frame | Q844 [ previous next ]
In frames[0]:
<SCRIPT LANGUAGE="JavaScript"><!-- var myVar = 'image.gif'; //--></SCRIPT>
In frames[1]:
<IMG SRC="picture.gif" WIDTH="100" HEIGHT="100" onLoad="this.src=parent.frames[0].myVar">