since it doesn't look like that script is being called on any particular event...is the actual script block *after* the code to generate the form field ITEM_ID?
If not, that's where it's hiccup-ing. You'd be trying to reference an element that has not yet been created. Either put those two javascript lines into a function and call the function onload, or put the script block towards the end of the code. hth, Charlie Owens>,Howard [EMAIL PROTECTED] writes: > Thanks for the help guys, > > So now on my popper page I have this: > > <script language="JavaScript"> > var newID = window.opener.form1.ITEM_ID.value; > document.form2.ITEM_ID.value = newID; > </script> > > But it's not writing the ID number to the hidden field called ITEM_ID. I've > tried a bunch of things, such as adding > > alert(document.form2.ITEM_ID.value) > > but it doesn't even throw an error. Not even an alert() with "undefined" in > it. > > H. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

