Hi,
I have a polling feature on my web site that is run through Vote!Pro, a great polling app by the way. Anyway, when you vote, the results pop up in a separate window but the window is HUGE! I want to make it a size I dictate through Javascript. Here is the javascript code that handles the poll on my home page. If any experienced javascript developer could shed some light on what code I can add to dictate the size of the popup, I would greatly appreciate it!
Code:
<!– Start of Vote! Pro code –>
<div style=”padding-left:27px;padding-top:5px;font-size:10px;”>
<script language=”JavaScript”>//<!–
var curURL = document.URL;
var curPos = curURL.indexOf(“?”);
if(curPos <= 0)
{
var preURL = curURL;
var curURL = “?”;
}
else
{
var preURL = curURL.substr(0,curPos);
var curURL = curURL.substr(curPos);
}
var remoteURL = ‘
var sURL = remoteURL +’/polls/poll_distant.php’+ curURL +’&poll_id=11_9_8_7&our_remote_host=’+ remoteURL +’&main_action_url=’ + preURL;
document.write(‘<script language=”JavaScript” ‘ +
‘src=”‘ + sURL + ‘”></script>’);
//–></script>
</div>
<!– End of Vote! Pro code –>