Is it possible to pass the contents of a text box or list to a javascript code url window.open(URL)? I have an asp.net list control that displays URL values. When an end user clicks on another list, a specific URL is specified in the list of URLs. I am trying to pass this URL to the above javascript code, but I don't know the correct syntax for this. This code will execute as an onclick event.
For clarification, it looks like entering "+ ListBox.Text.ToString() +"or β" & List.Text & "β"to add the contents of a list to something else, such as a text field. Is there a specific syntax to do the same, but add listbox.text to javascript?
Thanks,
Dfm
Dfm
source
share