Window.location with request restriction

Edit: Thank you all for your help, core.

Hello everybody,

$('#button1').click(function(){
   window.location = "/Home/GetCustomers?" + $('#myForm').serialize();
});

Is window.location used provided the size of the request is limited? For example, if my form has many options for serialization?

Thanks rodchar

+3
source share
2 answers

Window.location cannot be longer than any URL length restriction that a custom browser executes. It depends on the browser and browser; the shortest is Internet Explorer, which is 2083 characters long.

+2
source

URL- URL-, . Windows: Opera ~ 4050 , IE 4.0+ 2083 , Netscape 3 → 4.78 8192 , , Netscape 6 ~ 2000 .

+2

Source: https://habr.com/ru/post/1744834/


All Articles