function func()
{
var foo=document.Form.menu.options[document.Form.menu.selectedIndex].value;
var PopUpName = foo.substring(11,foo.length-3); //http://www. und .de entfernen
var win = window.open(document.Form.menu.options[document.Form.menu.selectedIndex].value,PopUpName);
win.focus();
}
mit
~~~javascript
var PopUpName=document.Form.menu.options[document.Form.menu.selectedIndex].firstChild.nodeValue;
var win = window.open(document.Form.menu.options[document.Form.menu.selectedIndex].value,PopUpName );
win.focus();
kannst du auf den Text zwischen <option>...</option> (also "test1" und "test2" zugreifen. Dann sparst du dir auch den substring()-Kram
Gruß,
Arthur D.
--
>> So long, and thanks for all the fish. <<
>> So long, and thanks for all the fish. <<