Click here to Skip to main content
15,905,913 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
I am designing a login system which gives a select tool asking to perform some tasks like
1. LogOut
2. ReStart
3. ShutDown
4. LogOff
but after selecting options from the page, i gets only is the options the overlay disappers which has design of select tag.

what could be the problem with this tag...
thanks
Posted
Comments
Sergey Alexandrovich Kryukov 18-Nov-11 2:23am    
Not clear. How about a small sample of HTML code?
--SA
thatraja 19-Nov-11 10:00am    
Not clear

1 solution

<html>
<head>
<title>User Management System</title>
<script language="JavaScript">
function displayOption()
{
document.location.href = document.form1.select1.options[document.form1.select1.selectedIndex].value;
}
</head>
<body bgcolor="">

<!--BEGIN FORM-->
<form name="form1" onload=load();>
<select name="select1" onChange="displayOption();">
<option>SelectOption</option>
<option value="start.html">Start</option>
<option value="shutdown.html">Shutdown</option>
<option value="restart.html">restart</option>
<option value="logout.html">logout</option>
</select>


</form>
<!--END FORM-->

</body>
</html>
 
Share this answer
 
Comments
Denno.Secqtinstien 22-Nov-11 6:43am    
Problem has been solved with solution 1

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900