Something like this:
Code:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title> </title>
<script>
var uurl
function prompt_id() {
var userid = prompt("Please enter User ID");
if (userid == "1234")
{window.open("http://linksredirect.com?pub_id=4180CL3981&subid="+userid+"&url="+uurl)}
else alert('Wrong ID')
}
function prompt_url() {
var url = prompt("Please enter Website Url");
if (url == "https://paytm.com")
{uurl=url; prompt_id()}
else alert('Wrong Url')
}
</script>
</head>
<body>
<button onclick="prompt_url()">Link me</button>
</body>
</html>
Bookmarks