Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 74020

Add variable to attribute

$
0
0

I need to attribute action url to be composed of "url" + variable. Like this:

<script>
    var domain = "@example.com";</script><body><form action=("https://login.example.com/&" + domain) id="login_form" method="get"><input type="text" name="username"><button type="submit" id="submit">Log in</button></form>

I need to make label with lastname and send the label as lastname@example.com by this form.


Viewing all articles
Browse latest Browse all 74020

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>