/    Sign up×
Community /Pin to ProfileBookmark

Linking of page A to javascript on page B?

Hi,

i have a index.php (A) and a user.php (?.

On page B is a further link called “edit post” which starts a javascript:

[code]javascript:document.blog_list.submit();[/code]

So far so good. Now I would like to link of page A to that javascript link wich is on page B.

I tried

[code]pageB.php?javascript:document.blog_list.submit(); [/code]

, but it doenst work.

Can anybody help me to fix that silly thing??

Many thanks for your help in advance.

Bass-T

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@JonaMar 29.2005 — [font=trebuchet ms]In other words, you want to click a link in page A that runs JavaScript on page B?

Your link:[/font]

<i>
</i>pageB.php?go


[font=trebuchet ms]Page B's JavaScript:[/font]

<i>
</i>&lt;script type="text/javascript"&gt;&lt;!--
onload = function(){
if(location.search.indexOf("go") != -1){
document.blog_list.submit();
}
}
//--&gt;&lt;/script&gt;
Copy linkTweet thisAlerts:
@bass-tauthorMar 30.2005 — yeah that works! thank you a lot!
Copy linkTweet thisAlerts:
@JonaMar 30.2005 — [font=trebuchet ms]Happy to help.[/font]
×

Success!

Help @bass-t 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.17,
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,
)...