I need to open an infopath form 'New Item' button in ribbon, I need to do this only ECMAscript (javascript) only.
I have uploaded that required Infopath form into form library in same site. Manually putting URL I can open that but need to open upon 'New Item' button click.