Ok, I am working on a simple script that will help me out with spot checking on Comparison shopping engines. I have the basis, but I need someones help in regards to adding some checkboxes. Here is what I have so far: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- This script has been modified from its original version to encompass more shopping engines--> <!------------------------------------------------------------------------> <html> <head> <title>CSE Product Search!</title> <script language="JavaScript"> var mpn; function openUrls(){ var mpn = document.form.textBox.value; window.open("http://www.pricegrabber.com/search.php?form_keyword="+mpn); window.open("http://www2.shopping.com/xFS?KW="+mpn+"&CLT=SCH"); window.open("http://www.shopzilla.com/7Y_-_SEARCH_GO--%20Go!%20__keyword--"+mpn); window.open("http://www.nextag.com/"+mpn+"/search-html"); window.open("http://base.google.com/base/search?q="+mpn+"&btnG-Search+Base"); } </script> </head> <body> <FORM NAME="form" ONSUBMIT="openUrls(this)"> Looking for your product on Comparison Shopping Engines? <br> <br> 1. Enter the MPN or search term for the item you are searching for: <TEXTAREA COLS="50" ROWS="2" NAME="textBox" ID="textBox"></TEXTAREA> <br><br> 2. Press the button. This will open one browser window for each shopping engine. <br><br> <INPUT TYPE="submit" NAME="buttonSubmit" VALUE="Find My Product!" > <INPUT TYPE="reset"> </FORM> </body> </html> Code (markup): What I need is to have checkboxes underneath the form that has each engine name by it. If you check the box, then it will only run for those that are checked and not the others. Let me know if someone can help me with this. Thanks!
Modify your form like this: <select name ="mpn"> <option value="PriceGrabber">PriceGrabber</option> </select> Code (markup): Modify your function: if (mpn == "Pricegrabber") { window.open("http://www.pricegrabber.com/search.php?form_keyword="+mpn); } Code (markup): Continue to add as needed.
Thanks for your help, but I need checkboxes in the script because I want to be able to look in multiple engines at one time, not just one.