Skip to content Skip to sidebar Skip to footer

Html Link Does Not Work Href Javascript Parameter Is Too Long

Solution 2:

The maximum limit of an href link is 2000: https://stackoverflow.com/a/417184/2413722.

If it's just data that you are wanting to send, then add a data attribute and get JavaScript to read that value (this is simplified somewhat in jQuery).

Solution 3:

Here's a great article on passing data with JSON. I'm using PHP and it's much easier than I thought :) http://betterexplained.com/articles/using-json-to-exchange-data/

Solution 4:

Why not save the long term into a variable

value = "yes";
<ahref="javascript:alert(value)">blubb</a>

Post a Comment for "Html Link Does Not Work Href Javascript Parameter Is Too Long"