View Single Post
Old 07-30-2011, 10:57 AM  
amateurbfs
Confirmed User
 
amateurbfs's Avatar
 
Join Date: Jun 2010
Posts: 1,316
javascript question

This is probably vague, I don't really know what I am doing.

Doing this inside of a frame, I want to open in _top not the same frame the code is in.

Code:
<select name="page_id" id="page_id"  onchange="javascript:dropdown_post_js(this)">
Code:
<script type="text/javascript">

function dropdown_post_js(menuObj) {

	var i = menuObj.selectedIndex;

	

	if(i > 0)

	{

	if(menuObj.options[i].value != '#')

		{

			window.location = menuObj.options[i].value;

		}

	}

}

</script>
__________________

Last edited by amateurbfs; 07-30-2011 at 10:59 AM..
amateurbfs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote