sutt0n 0 Newbie Poster

Ok, so I have this bit of Javascript and for some reason it's not working.

It's supposed to work like "modvideo('2')" whereas "2" is an ID number.

This is supposed to post to a page like a form, but for some reason is being gay.

function modVideo(inKey){
		
		
		document.getElementById('txtKey').value = inKey;

		var objForm = document.getElementById('frmUser');
		document.objForm.action = 'modifyVideo.php';
		document.objForm.submit();
		
		
	}

Everything is fine from my perspective. Please help me. :) Thank you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.