Guest SP Jain Posted November 28, 2007 Share Posted November 28, 2007 Hi,How to open new browser window when user select any one specific option from the drop down where java script is disabled. Need to open new browser window when user is selecting one specific option not others option. Putting code snippet<form method="post" action="optionAvaliable.do" ><select name="dispatch" id="actionForThisPerson"> <option value="Action_for_person"> Actions for this person </option> <option value ="Print" > Print </option> <option value ="EditView" > View </option> <option value ="BackToPersonList"> BackToPersonList </option> <option value ="SelectForGift"> SelectForGift </option> </select> <input type="image" src="images/goButton.gif" alt="Use selected option"/></form> Say new window needs to be opened for when user select option Print in other case response should be on the same page.I thought about using anchor tag within option but do not know how to use.It would be your great help if any body can give the solution or even hint. Link to comment Share on other sites More sharing options...
justsomeguy Posted November 28, 2007 Share Posted November 28, 2007 You can't do that without Javascript. Link to comment Share on other sites More sharing options...
javaholic5 Posted November 28, 2007 Share Posted November 28, 2007 Yeh, that is true...Html cannot handle events on its own.You may benefit from implementing event handlers like any other attribute, (placed within a tag) but when an event happens it would trigger a JavaScript command. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.