HTML Pop-Up Message With Links .?

Josh

New member
I want a pop-up message that has two links

for example i have a download site and when you click download a pop-up comes up asking if you want to download the mac version or windows

Thanks!
 
You could not even need a pop up, you can do this with javascript. basically this is sudo code of how it would look:

if(computer.brand = mac){
download.mac = true;
}else{
download.windows = true;
}

with this code you would eliminate the pop up and therefore limiting the amount of decisions someone would need to make.

believe me, there are people out there that might not know if they have a pc or a mac. it might be 1/1000000 but its still likely

also, users like things handed to them. so the easiest way for them would be less decisions.
 
<script type="text/javascript">
<!--
function clicked() {
pop = document.getElementById('pop_up');
pop.style.visibility = 'visible';
//You may also want to position the popup in the center of the page, or w/e
}
//-->
</script>

<a href="javascript:clicked();">Download</a>

<div id="pop_up" style="position: absolute; left: 0px; right: 0px; visibility: hidden;">

<!--Put anything that you want in the pop up in this div-->
<a href="/mac.php">Download for Mac</a><br />
<a href="/pc.php">Download for PC</a>

</div>

Hope this helps. :D
 
Back
Top