HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Iframes and Forms
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
singhan



Joined: 15 Feb 2005
Posts: 2

PostPosted: Wed Feb 16, 2005 7:21 am     Iframes and Forms Reply with quote

Ok...I am having another problem with my iframes. I have a form (jump menu) in my iframe with a button-when clicked it SHOULD go to a new page or parent but instead it loads the new page into the iframe. Again I don't know if its my onclick or my javascript.

Here's the button code:
onClick="location=window.document.form1.menu.options[window.document.form1.menu.selectedIndex].value;" value="Buy">

and JS:
var merchantid_value=#####; // merchant id number
var productid_value=0; // a default changed when you enter a product id

function addItem(productid_value) {
if (!productid_value>0) {
productid_value=0; // If you forget to add the productid_value in your button code, the button will be the same as view cart.

}
window.location='http://www.profcs.com/app/netcart.asp?merchantid='+merchantid_value+'&productid='+productid_value;
}

Thanks!
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial