populate popup page using javascript

SHOW POPUP::

Javascript Code:
function showmepop(plink,pname)
{
    window.open(plink, pname, "top=10,left=20,width=600,height=400");  
}

Html code::
<button onclick="showmepop('<?php echo $QUOTELINK;?>','test');">View</button>