change this :
var (window.open(all));
to :
window.open(all);
Final code :
<html>
<head>
<script>
function myFunction() {
var user=prompt('Your cpanel.cuccfree.com user','');
var web=prompt('Your cpanel domainname','example');
var web2=prompt('Your cpanel domaintype (.com/.net/..)','cu.cc');
var url = "https://ifastnet.com/portal/cart.php?a=add&pid=89&configoption[193]=";
var url2 = ".472656&sld=";
var url3 = "&tld=";
var url4 = "&domainoption=owndomain";
var all = url + user + url2 + web + url3 + web2;
window.open(all);
document.getElementById("output").innerHTML = all;
}
</script>
</head>
<body>
<p id="output"></p>
<button onclick="myFunction()">Start her.</button>
</body>
</html>
1
solved Can anyone help me with this javascript?