/    Sign up×
Community /Pin to ProfileBookmark

Pseudo code

Hi there,
I know that pseudo code is a bad programming practice but i need help.I have this webpage which i need to refresh on the browser using the javascript on the address bar without changing the web page contents.

this is what i came up with
javascript: function A(){ history.go(0); setInterval(2000); void (0);

this doesnt work..can any1 help me fix this?
plz
Biren

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@nshiellJul 29.2007 — Hmmm

Maybe you should look into AJAX as it can update data from an HTTP connection wiothout redirecting the browser at all.
Copy linkTweet thisAlerts:
@BirenauthorJul 29.2007 — Does it work at address bar?

i cant change the web page
Copy linkTweet thisAlerts:
@nshiellJul 29.2007 — Maybe look at http://www.w3schools.com/ajax/default.asp I havn't looked a tthis tutorial, u should also brush-up on your JavaScript
Copy linkTweet thisAlerts:
@forty2Jul 29.2007 — Get this pseudo code ?
<i>
</i>&lt;body onload="setTimeout('window.location.reload(false)', 2000)"&gt;

window.location.reload() -> http://developer.mozilla.org/en/docs/DOM:window.location
×

Success!

Help @Biren 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 6.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...