Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

submit button(image field) spawns new window

Status
Not open for further replies.

btish

Programmer
Aug 7, 2001
23
US
Hello guys,
I have a submit button in one of my forms that is spawning a new window every time I try and calculate my javascript function. The button is actually an image field that acts like a typical button, but again it spawns a new page.

I DON"T want it to spawn a new page. Any ideas on how to solve this?
The code is below:

<input type=&quot;image&quot; name=&quot;submit&quot; onClick=&quot;calculate()&quot; src=&quot;/roi_calculator/slices/images/input_interface_11.gif&quot; width=&quot;136&quot; height=&quot;35&quot;>

Thanks in advance for any help.
Btish
 
What is the goal of this button? You say to calculate your Jscript function but what does your function do? If there is no fix for this there might be a different way of doing it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top