Jump to content

How to open new window, selecting one option from dropdown when java script disabled


Guest SP Jain

Recommended Posts

Guest SP Jain

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...