用这个 :
urlmenu.onchange = function() { window.open( this.options[ this.selectedIndex ].value, '_self'); };
window.open(URL,name,specs,replace):其中name:
_blank - URL is loaded into a new window. This is default _parent - URL is loaded into the parent frame _self - URL replaces the current page _top - URL replaces any framesets that may be loaded name - The name of the window (Note: the name does not specify the title of the new window)
DEMO Link
用这个 :
urlmenu.onchange = function() { window.open( this.options[ this.selectedIndex ].value, '_self'); };
window.open(URL,name,specs,replace):其中name:
_blank - URL is loaded into a new window. This is default _parent - URL is loaded into the parent frame _self - URL replaces the current page _top - URL replaces any framesets that may be loaded name - The name of the window (Note: the name does not specify the title of the new window)
DEMO Link