Code: Select all
iframe.setAttribute('srcdoc', this._settings.action);
Code: Select all
var iframe = toElement('<iframe src="javascript:false;" name="' + id + '" />');
// src="javascript:false; was added
// because it possibly removes ie6 prompt
// "This page contains both secure and nonsecure items"
// Anyway, it doesn't do any harm.
iframe.setAttribute('id', id);
iframe.setAttribute('srcdoc', this._settings.action);
iframe.style.display = 'none';
document.body.appendChild(iframe);