/    Sign up×
Community /Pin to ProfileBookmark

Hi!!
I have a html page with 2 frames, on the left I have a archive, clicking on a document I need it to be opened on the right frame.
The document is opened by the comand:
window.location.href=file_name

How do I tell it to open it there????

thank you!!

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@CharlesSep 01.2003 — [i]Originally posted by misst [/i]

[B]How do I tell it to open it there????[/B][/QUOTE]
[font=georgia]It's bad to use JavaScript for navigation, and unnecessary. Just use a link.[/font]

[font=monospace]<a href="http://www.w3.org/" target="frameName">W3C</a>[/font]
Copy linkTweet thisAlerts:
@misstauthorSep 01.2003 — the problem is that I must use java to adapt a program that already exist!!

I think it's possible, but I don't know how...

Can you help me the same?
Copy linkTweet thisAlerts:
@CharlesSep 01.2003 — [font=georgia]I'm afraid, though, that this is a JavaScript forum. For Java help you will need to go elsewhere.[/font]
Copy linkTweet thisAlerts:
@misstauthorSep 01.2003 — the program that I have to modify is in javascript!!
Copy linkTweet thisAlerts:
@Khalid_AliSep 01.2003 — this will open link in a targetted frame

parent.frameName.location.href = url;
×

Success!

Help @misst 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.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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...