English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

window.location.href = url;

how can i open this URL in a frame named (bibo) 'with the same way without using ..

2006-08-24 00:19:42 · 6 answers · asked by Anonymous in Computers & Internet Programming & Design

6 answers

How do I make my links open in another frame?


So you want a link in one frame, to open up in another frame. To do this, you have to target your links.

You can target a link by using the target="?" tag. Replace the ? with where you want to open the link.

So now you have to find out the name of the frame you want the link to open in. In your index.html (or whatever page you are using to put your frames together) you should see something that looks like this (not exactly, but similar):







So for example, I wanted my link to open up on the right.html frame. The name of this frame is rightside, so my target tag would be target="rightside". If I wanted my links to open up on the left.html frame, my target tag would look like this target="leftside".

If your frame does not have a name, just place a name="?" within the frame code, replacing the ? with what you want to name the frame.

Once you have the name of the frame, you can put it in your target tag, and place the target tag it in your link code.

So if I had a link in my left.html page, and I wanted it to open in my right.html, my text link would look like this:


Yahoo.com
An image link would look like this:


<:/a>

2006-08-24 00:32:56 · answer #1 · answered by kartoos5050 2 · 0 0

I got it. This is what you want. I got two frames for this.

Frame 3 – The bigger container
Frame 1 – Where I want the URL to appear
Frame 2 – Where my button is

In the head tag of Frame 2 (this is where the button is) ………..
…..
…..



…..
…..
For the button


Click the button and you’ll see the yahoo appears in “Frame 1”
No is used.
10 Points ?????

------------ Edited back

The open statement is not displayed properly. May be some kind of a parser is blocking it. That’s why you see some dots like …. Instead of the ‘and ) and ; I hope you can fix by your self. Else send a mail to me. I’ll send the code for you.

2006-08-24 07:51:18 · answer #2 · answered by Nishan Saliya 4 · 0 0

I assume you are creating 3 frames

One for Top (Banner Place)
Left hand side for Menu
Right hand side (Body Aread, Your effect area),

If anybody click on left (Menu) the page will load on right hand side (Body area)

Copy this script and paste after body tag

Be sure to change your file name according to the given one.








<br /> <body> </p> <p> <small> 2006-08-24 07:30:45 &centerdot; <a href="#answer20060824073045">answer #3</a> &centerdot; <span>answered by <u>Syed Irfanulla</u> <b>3</b></span> &centerdot; <span>0<span style='color:green;'>&#x290A;</span></span> <span>0<span style='color:red;'>&#x290B;</span></span> </small> </p> </div> <div id="answer20060824080227" class='answer' > <!-- <b>Answer #4</b> --> <p class='answer-content' lang="en"> see dont open this url if you dont know!<br /> and u will get nothing for 10 pts<br /> why r u trying that ,that i cant understand<br /> and that link may contain VIRUS also </p> <p> <small> 2006-08-24 08:02:27 &centerdot; <a href="#answer20060824080227">answer #4</a> &centerdot; <span>answered by <u>yogesh T</u> <b>2</b></span> &centerdot; <span>0<span style='color:green;'>&#x290A;</span></span> <span>1<span style='color:red;'>&#x290B;</span></span> </small> </p> </div> <div id="answer20060824072730" class='answer' > <!-- <b>Answer #5</b> --> <p class='answer-content' lang="en"> right click your mouse, choose open in new window </p> <p> <small> 2006-08-24 07:27:30 &centerdot; <a href="#answer20060824072730">answer #5</a> &centerdot; <span>answered by <u>Boliver Bumgut</u> <b>4</b></span> &centerdot; <span>0<span style='color:green;'>&#x290A;</span></span> <span>0<span style='color:red;'>&#x290B;</span></span> </small> </p> </div> <div id="answer20060824080822" class='answer' > <!-- <b>Answer #6</b> --> <p class='answer-content' lang="en"> try: window.frames.bibo.location.href = url; </p> <p> <small> 2006-08-24 08:08:22 &centerdot; <a href="#answer20060824080822">answer #6</a> &centerdot; <span>answered by <u>Drella</u> <b>1</b></span> &centerdot; <span>0<span style='color:green;'>&#x290A;</span></span> <span>0<span style='color:red;'>&#x290B;</span></span> </small> </p> </div> </div> </article> </section> <div style="background:#888;padding:8px;margin-top:16px;"> fedest.com, questions and answers </div> </body> </html>