I have page with input field. Suppose user enters x there, then I need to open page/x. My code is:
<form action="#" onsubmit="javascript:window.open('{% url 'index' %}'+this.days.value,'null');return false">
<input type="number" name="days" autofocus required><br>
</form>
It works perfectly on my laptop but not on my iphone. When I enter number and press "Go" in safari nothing happens. How should I change it to make it work on Iphone? Maybe it's better to implement it different way? If so, how?