Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

Question

Status: Closed Points: 75 Time: 02:14 - Feb 02, 2009  

rmda

i created Feedback form

I created one Feedback form in Asp 3.5/Visual Studio 2008 ; its working fine sending e-mail to the the admin.

But whrn the client pressed "BACK" button on the browser window it shows all the entered values again "which i dont want"

Please help me...

See my program on

http://www.tharjuma.com/feedback.aspx

Categories

Answer Discussion
Tutorials

 

IronXavi

Date:: Mar 06, 2009

Time:: 06:54

Insert the following script code inside your page <head> section:

<script>
function clearForms ()
{
var i ;
for (i = 0 ; i < document.forms.length ; i++)
document.forms [i].reset () ;
}
</script>

Then change your <body> line to:

<body onLoad="clearForms () ;" onUnload="clearForms () ;">

This should work and be fully compatible with current scripting in your page. Both onLoad and onUnload handlers are calling the same function to make the trick work in both Internet Explorer (always calls onLoad, but does not allow the script to reset the form while running onUnload) and Firefox (only calls onLoad when page is displayed for the first time, but honors the form reset request while processing onUnload).

Hope this helps,

IronXavi

admin

Date:: Mar 28, 2009

Time:: 10:08

The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points.

The Quomon Team

admin

Date:: Apr 07, 2009

Time:: 05:58

The question has been closed.

The Quomon Team

Question Answered

This question has been closed, and points have been rewarded to the following experts:


IronXavi: 75

You're welcome however to comment or give additional information or if you wish, you have the ability to write a Tutorial in the Tutorial Area.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

No tutorials have been submitted yet. Want to be the first?

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

10354

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es