Tuesday, June 26, 2007

Dynamically Changing an IFrame URL

Here is the code to dynamically change an IFrame URL. Put this code in your onLoad event handler on a form:

var ProcessID = crmForm.all.new_fieldname.DataValue;
IFRAME_report.location='http://www.google.com';


You can also hide an IFrame onLoad and display it when needed by including the following code:

crmForm.all.IFRAME_report.style.display = 'none';

No comments: