I have a javascript function. This click will trigger it. Using document.getElementById
, I get certain parameters. Using these parameters, I need to create a url. those. onclick will have to execute this url.
For example, in javascript,
function remove() { var name=...; var age = ...;
In short, I need to do http://something.jsp?name=name&age=age
this url when clicked
<input type="button" name="button" onclick="remove();" />
source share