Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <script>
- var upit = window.location.search;
- upit = upit.substring(1);
- // username=seb&password=123
- var delovi = upit.split("&");
- // { " username=seb", "password=123"}
- // [0] // [1]
- // {"username" , "seb"}
- // [1]
- // {"passsword" , "123"}
- var username = delovi[0].split("=")[1];
- var password = delovi[1].split("=")[1];
- alert("Username je:" + username);
- alert("password je:" + password);
- </script>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement