/    Sign up×
Community /Pin to ProfileBookmark

force to load window.open()

Hi,
my code is :
<A HREF=”javascript:window.open(‘./ServletAcces?
nomBase=etudiant’,’_self’,’status=yes’);” >
<IMG SRC=”bouton.gif”/></A>

When i clik on the button for the first time the ServletAcces is
called.
But the second time and more, the ServletAcces is not called because i
think it’s the cach’s browser.
How can i do to force the link to call the ServletAcces each times it
is called ?

I kwow it is ok if i use _blank as attribute but i don’t want to use
it.

Thanks a lot

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliJun 18.2003 — Use this in the head section of your webpage where you want toforce no cache

<meta http-equiv="Pragma" content="no-cache;">

It should work..
Copy linkTweet thisAlerts:
@CharlesJun 19.2003 — [font=georgia]By the way, [font=monospace]<A HREF="javascript:window.open('./ServletAcces?nomBase=etudiant','_self','status=yes');" >

<IMG SRC="bouton.gif"/></A> [/font] will needlessly give you a link that does absolutely nothing for 13% of users. Use instead [font=monospace]<a href="./ServletAcces?nomBase=etudiant" onclick="window.open(this.href, 'child', 'status'); return false"><IMG SRC="bouton.gif"></a>[/font].[/font]
Copy linkTweet thisAlerts:
@jean-baptisteauthorJun 19.2003 — thanks a lot for your answer.

<meta http-equiv="Pragma" content="no-cache;"> works but not at each time.
×

Success!

Help @jean-baptiste 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.23,
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,
)...