i need help with carrying hidden data from a page to a popup. Bascially i have a page with an item on it. This item has an item code, i want to put in an enquiry button on the page. so that when a customer clicks on it a pop up opens. The pop up will have a small enqury form on it with all the usually fields on. The problem i have is that i want the pop up to open with the item code already in a item code field. This will save the customer having to look wat the product number is of the product that they want an equiry about is.
Still with me....
Anyway. i figured i'd use a small form like the following:
- Code: Select all
<form method='post' target="_blank" action"submit">
<input type='hidden' name=Itemcode value='001'>
<input name="submit" type=submit class="style11" value='Equiry' />
</form>
But i don't want the target to be _blank i want to run some jsript off the button!...... is this possible? e.g. action='javascript:namehere()'
So can anyone help me
1)open a popup off a form button
2) carry the item code from the main page to a field on the popup
Thanks in advance
justdan
msn = static711@hotmail.com
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2


