/    Sign up×
Community /Pin to ProfileBookmark

Iframe and Javascript problem, puzzle for an idle mind

Ok, here’s my problem and I’ll be eternally grateful to any individual who can solve this and expose my stupidity over the forum…

Basically, I have a file (main.htm) that has an iframe and a bunch of buttons, the buttons’ target is the iframe. Now, one of the files that is supposed to load in the iframe through a button (product.htm) will load only once. Basically, if you click the product button of main.html. It’ll open product.htm in the target, but when you click on home or product button again in main.html, it opens them in new window. Although the target is the iframe

Now… product.htm has a javascript dropdown menu, and it is that menu that’s screwing this up. How do i no? I’ve taken the javascript of the menu away and it worked fine. SOO… this is a javascript puzzle.. that I cannot solve but desperately need to… please help.. anyone who can!!

Here’s the example
[URL=http://www.geocities.com/gundam_d_b/main2.htm]http://www.geocities.com/gundam_d_b/main2.htm[/URL]

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Paul_JrApr 03.2004 — It seems to work just fine for me... ?
Copy linkTweet thisAlerts:
@Yuy_RenauthorApr 03.2004 — no... if you click product a second time, then it opens in a new window ?
Copy linkTweet thisAlerts:
@Paul_JrApr 03.2004 — Ah, now I see what you mean. I don't really see anything that might screw things up, but I am wondering what role this part plays in the whole scheme of things:
<i>
</i>function goToURL() { history.go(-1); }
×

Success!

Help @Yuy_Ren 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.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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