473,223 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,223 software developers and data experts.

How to set link target property to open page in center div?

I have a page with three divs (top, left and center). I want to place
hyperlinks in the left column (div), where each link calls a separate page.
I want each separate page to open in the center div, leaving the contents of
the other two divs unchanged. But I don't know how to set the "target"
property to open in the center div. I would prefer to do this without using
frames.

Does anybody know how to set the "target" property of each hyperlink to show
the contents of each separate page in the center div? Thanks for any help.


Jul 21 '05 #1
3 23860
Jennifer wrote:
I have a page with three divs (top, left and center). I want to place
hyperlinks in the left column (div), where each link calls a separate
page. I want each separate page to open in the center div, leaving the
contents of the other two divs unchanged. But I don't know how to set the
"target" property to open in the center div. I would prefer to do this
without using frames.


Documents can only be displayed in windows or frames. You can't open a
document in joe random element. If you could, then there wouldn't be much
point in avoiding frames - since you would have just reintroduced all the
problems associated with them.

The solution is to include the content you have in the top and left divs on
each page. A preprocessor or server side tool can keep this sort of thing
in sync for you automatically.

http://www.allmyfaqs.com/faq.pl?Incl...ile_in_another
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 21 '05 #2
If you don't use frames you cann still use IFRAME for the same purpose.
Adressing of iframe source is : document.all.MyFrame.src="blabla.htm"

Jul 21 '05 #3
stofi wrote:

Are you responding to something? You seem to have forgotten to quote any of
it.
If you don't use frames you cann still use IFRAME for the same purpose.
Adressing of iframe source is : document.all.MyFrame.src="blabla.htm"


Yuck. That is Internet Explorer specific JScript, don't use it. If you MUST
use JavaScript then try: document.frames['MyFrame'].src, which is much
better supported, but you almost certainly can get away with just using the
target attribute and plain old Transitional HTML 4.01.

See also: http://www.allmyfaqs.com/faq.pl?Prob...h_using_frames

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Marco | last post by:
I made an html-page with this line in it: <A HREF="http://www.bla.com" onClick="javascript:window.close()" target="moeder">link</A> It works very well in Internet Explorer, but in Netscape 7...
36
by: randau | last post by:
I would like to use the Link Target attribute, but am inhibited by the likelihood of a newly opened browser window completely hiding the Parent browser window. Thus offering the illusion that...
4
by: Miguel Dias Moura | last post by:
Hello, I created a datalist in an ASP.Net / VB page. I display the image and price of a few products. When a user clicks an image I want to load the page "detail.aspx?number=id" and send the...
4
by: dennise9 | last post by:
My exeternal JS works fine when the call is placed in the page head or body. But if I call the same javascript from a (clicked) text link on the page, the script throws a JS error when it...
8
by: Chad | last post by:
Should links automatically appear in the "visited" color as defined by the user's IE settings without having to add any special coding? I have a situation where the link was not changing color...
1
by: LizF | last post by:
Hi, I have an iframe with a site from a different domain. The iframe src contains links that I would like to open in a new window when clicked. Unfortunately, I can't get the target.href of the...
4
Death Slaught
by: Death Slaught | last post by:
im making a web site for a friend and i need a section of a-z links on a music page that have all the artist there that start with that letter but it wont open. heres the code to the music page. ...
27
by: GloStix | last post by:
WARNING VIDEO TAKES A WHILE TO LOAD http://screencast.com/t/BWQ6DNtsM I really don't know how to fix this other than putting another div. But I dont' exactly want to do that for every page....
3
by: jeddiki | last post by:
Hello, I have my site analyzer script nearly working, but the link that I am trying to pass back to the query is not being accepted. The easiest way to explain what I mean is to show you the...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.