PDA

View Full Version : how to target a form in an iframe ?


firepages
11-15-2002, 06:21 AM
Hi, how do I target a form in an iframe ?

so say I can currently do this (and I can ;))

document.bella22["point"].value=p_var;

how do I target a form (named as above) in an iframe called 'cart_frame'

?? I know I should know this but I obviously do not , I know its parent.children or something like for normal frames what about iframes ?

glenngv
11-15-2002, 06:51 AM
top.frames["iframeName"].document.bella22.point.value=p_var;

or

window.iframeName.document.bella22.point.value=p_var;

firepages
11-15-2002, 07:04 AM
DOH - I swear I tried

window.iframeName.document.bella22.point.value=p_var;

but obviously not ! cos that works :) cheers