/    Sign up×
Community /Pin to ProfileBookmark

linking a drop-down menu to a IFRAME help

hi, can someone please help me I am working on a new website and is it possible to get a drop down menu to link to a iframe so when someone click a link next to the iframe it wil bring up the website in the iframe please please please help me this is ver important to the future of websites woh ever can get me the code I will put a message at the bottom of my website saying “with help from(your name)”
many thanks, dylan parrin ?

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@dylanparrinauthorNov 27.2006 — please please can i have help i will tell you why if you want ?
Copy linkTweet thisAlerts:
@aj_nscNov 28.2006 — Javascript:

parent.(name of iframe).document.location.href = (your url)
Copy linkTweet thisAlerts:
@dylanparrinauthorDec 01.2006 — can i have the hole code please I don't understand im sort of new to HTML and JavaScript.
Copy linkTweet thisAlerts:
@dylanparrinauthorDec 01.2006 — all I need is a code that puts a drop down menu next to a IFRAME an shows what I want in the IFRAME by clicking the drop down menu!.

plz plz help ?
Copy linkTweet thisAlerts:
@strakezDec 01.2006 — [CODE]<a href="javascript:parent.(name of iframe).document.location.href = (url for iframe to go to)"> [/CODE]

i think thats it. replace whats in the brackets with the required information.


-------------------------------

thats the complicated javascript way. if that doesn't work just make sure your iframe has a name (for both this and the method above),

something like <iframe name="(iframename)" ... ></iframe>

then when u place ur link.... [CODE]<a href="(url for iframe to go to)" target="(iframename)> ... </a>[/CODE]

this is the html way to do it.

the javascript method is a bit smoother for ur browser to handle, but not by much.

either way will do.
Copy linkTweet thisAlerts:
@dylanparrinauthorDec 02.2006 — but thats not a drop down menu i can do normal links to the IFRAME but i need a drop down menu i know im starting to sound a bit anoying but this is really important for a project im working on plz help ?

many thanks



D.....
×

Success!

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