The Code
Displaying the generated code in a pop-up window takes just two easy
steps. First, create a new HTML page and paste the following
JavaScript between the <head></head>
tags. This code creates a function called
AmazonLookup that will control the state of the
pop-up window and initiate
a link to the remote server.
<script type="text/javascript">
function AmazonLookUp(ASIN) {
// Set pop-up window properties
var winoptions = 'toolbar=no,';
winoptions += 'menubar=no,';
winoptions += 'location=no,';
winoptions += 'scrollbars=yes,';
winoptions += 'resizable=yes,';
winoptions += 'statusbar=yes,';
winoptions += 'width=470,';
winoptions += 'height=500';
//Set the remote service URL, including the ASIN
var URL = "http://www.explodingfist.com/quickreview/index.php?ASIN="+ASIN
//Open a new window with the remote URL
OpenWin = this.open(URL, "Amazon", winoptions);
}
</script>