How can we access the variable which is submitted such as
<form methord='get' action='sdsd.html'>
using javascript?
POST values are not accessible client side.
GET values can be accessed via
window.location.search
Values that have been "posted" with GET are now in the querystring. You could parse the querystring with JS to get the values.
Here is a general example: Parse Querystring with JS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With