I'm trying to pass a Querystring from a listbox into a new opened window...
I try to get it to link to document.php?id= option value...Code:<script language="JavaScript"> function MM_openBrWindow(theURL,winName,features) { //v2.0 theBla = "document.php?id=" + theURL; window.open(theBla,winName,features); } </script> </head> <body> <form name="form1" method="post" action=""> <select name="select""> <option value="5" selected>Test5</option> <option value="67">Test67</option> <option value="987">Test987</option> </select> </form> <a href="#" onClick="MM_openBrWindow(form1.select.value,'','')">Link</a>
Somehow when trying to pass this string...I only get
document.php
back to my browser....pretty strange..anyone an idea?
When I set
I do get some values like document.php67, document.php987Code:theBla = "document.php" + theURL;
FIXED: How could I be so stupid...when removing the spaces between in the creatoin of theBla it suddenly worked..
theBla = "document.php?id="+theURL;




Reply With Quote