/    Sign up×
Community /Pin to ProfileBookmark

Automatic link – help needed

Hi, is there a function in php, that will allow me to call a link the be clicked automaticaly? For instance(im just writing generally not in actual php code)

if close = true
then:

(can the link below happen without the user clicking on it?)

call this link atomaticlly
<a href=”#” title=” close this window ” onclick=”window.opener = top;window.close();”>close</a>

else:
show page

Thanks
David

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceFeb 25.2005 — No, being server-side-only, PHP cannot directly interact with the browser. This is what client-side script (e.g., JavaScript) is for.
Copy linkTweet thisAlerts:
@me01273authorFeb 25.2005 — oh i see, thanks for the advice

David
×

Success!

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