/    Sign up×
Community /Pin to ProfileBookmark

Hi,

I have a value I calculate at the bottom of a page eg I have a ‘pageno’ link i click to goto next page . I want the same ‘pageno’ link to appear at the top of the page as well.
echo “<a href=# onClick=ajaxFunction(‘$alName’,’$nextPage’) >Next</a>”;

How can I copy a link to the top of the page, as the workings out of the ‘next’ link take a few lines, so it is easy to work it out once then copy to top of the page?

The page numbers of the rest of the document are displayed at bottom and then i want the page numbers to be at the top of page.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@FangFeb 10.2007 — Can you not do the PHP calculation earlier?

Use cloneNode and insert it onload
×

Success!

Help @jagguy 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,
)...