Right know I have to use two scripts to popup the window to the correct page so that the popup is also the correct size.
And I have two have two separate links for the user to choose from.
It would be ideal if they just could click on one link and have the script determine based on their resolution what page to send them to.
Blelow are the scripts I'm using
Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=1,width=940,height=686,left = 170,top = 169');");
}
// End -->
</script>
<script type="text/javascript">
//Popup Window Script
function openpopup(popurl){
var winpops=window.open(popurl,"","width=1040,height=778,resizable,scrollbars=yes,left = 120,top = 123")
}
</script>
and this is how the links on the page look
javascript:openpopup('Page1.html')
javascript:popUp('Page2.html')
Bookmarks