/    Sign up×
Community /Pin to ProfileBookmark

javascript hidden field

I’m trying to change some hidden field values during onbeforeunload…Except when i get the same page back (after a postback)…the hidden fields are not maintaining the values. I’ve know they’re changing (i’ve used just text fields to test)…but they always come back reverted back to orginal.

Is there something that doesn’t allow javascript to do this…cuz it works if i just type in these fields.

What am i missing here?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@CharlesJul 21.2006 — Set those fields onsubmit.
Copy linkTweet thisAlerts:
@RobDavidauthorJul 21.2006 — Set those fields onsubmit.[/QUOTE]

Thanks! Works great now
×

Success!

Help @RobDavid spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...