Testing embedding web form using JavaScript