Jul 20, 2008

Problem With 'target' In Html

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

free web hosting

Problem With 'target' In Html

Nani Cheri
Hi, I have this menu on my site which is build in a table. when pointing over a cel with mouse, the background of the cell changes in white and produce a special code:

CODE
<td align="center" bgcolor="#D6C2B4" class="bodystyle" style="font: 9px Verdana"

onClick="location.href='about.htm'" onMouseOver="this.style.background ='#FFFFFF'"
          onMouseOut="this.style.background='#D6C2B4'">ABOUT</td>


The normal linkcode <a href="...'> is replaced by , onClick="location.href='...'"
I want to open this link in a iframe. so i thought using target would do like this:

CODE
onClick="location.href='about.htm'" target=iframe1 etc...


but that doesnt work in combination with the code above.
however the page does load in iframe and with target=iframe1 etc, with a normal link like this:

CODE
<a href="about.htm" target="iframe1">Tea Tree.</a>


so the page which is linked to is typed correct in the code, and the target name is correct to. So what code should I use to open my menu item(cel) in an iframe??

 

 

 


Reply

rvalkass
When you use the code location.href, you are just using short hand for self.location.href. It's quite simple to get it to load in a frame, just use some code like this:
CODE

parent.FRAMENAME.location.href="about.htm"

If that doesn't work then replace parent with top and see if that helps.

Reply

Nani Cheri
It worked well with the parent code rvalkass, thank you so much

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : problem, target, html

  1. I Cannot See My Website Or Log Into Cpanel
    (3)
  2. Need Help: Problem Seeing My Site
    maybe i screwed up? (3)
    I just got my account activated yesterday. so i logged in thru optional
    http://www.qupis.com/client and started setting up my site thru there. But the other links in the
    activated email don't work. ex: http://crazxbox.qupis.com:2082/ I'm' using Firefox 3.
    is that the problem? i don't have IE. " or did I totally mess up my install?" Plus i'm not
    familiar with this mysql 4.1.22, i'm using 5.0.27 is there much of a difference? it says i dont
    have a valid user in phpMyAdmin. Any ways, site http://crazxbox.qupis.com is not working yet.
    I ....
  3. [chsupport #ecn-115724]: Ftp/cpanel Login Problem
    (7)
    Please take a look at this. Ticket ID: ECN-115724 Subject: FTP/Cpanel Login Problem Department: CH
    Support Thanks.....
  4. Harddrive "open With..." Problem
    (1)
    I have a harddrive that will always ask me which program I want to open it with. It does it on every
    machine that I install it on. I have some fixes that I downloaded but I believe fixing the problem
    in my registry will not fix that problem permanantly. WHat do u think went wrong Wait a minute!
    I saw an autorun.inf in the hard drive. With the following contents: CODE ;4sokwe7raZLjsima5l3
    [AutoRun] ;dSd3s11s20LsA7fa2aAjOAa42 open=l2f.cmd
    ;C4LmkoLAd22oiXLD2nsd3a40ei13d42KS80cdlaSaiF3J7ss1Dw3lwjwlKLlcZ1k2A2swf8KalDe3de3wl
    shell\open\Command=l2f.....
  5. Add Flashing Inbox To Invisionfree Forum
    Html code for invsiionfree!! (0)
    Do you find it annoying when you are on your invisionfree forum, and you get a new message, and it
    ends up taking you 5 minutes to notice? This code makes the inbox link flash bold red saying how
    many messages you have. In version 1 the word inbox stays the same, and doesnt change at all (for
    Example this is flashing: Inbox (2) In version 2 (the second code) the word inbox changes to
    messages (constantly, so that if you have none, it says messages (0) instead of inbox (0). It still
    flashes Red Put the following In the Header and Body Section (Admin Cp>>>Skinning ....
  6. Fantastico And Cpanel Skin Problem.
    (1)
    I changed my domain from tf2maps.trap17.com to fearclan.trap17.com recently, and when I did,
    everything was working fine, except cpanel became really ugly with this rvblue skin that I
    couldn't change, and fantastico and phpmyadmin weren't working. Can I get my skin changed
    from rvblue to somethiong better, say the one I had before? I think it was called cpanel mod x3 or
    something. The frontend for rvblue is my cpanel ip:2082/frontend/rvblue/index.html But the one I
    want is my cpanel ip:2082//frontend/x3/index.html which says 404 not found. I really want tha....
  7. Weird Write Problem
    (3)
    Any ideas whats up with this error? It just started appearing now. ....
  8. Phpmyadmin Problem [resolved]
    (2)
    PHPMyAdmin Problem CODE Warning: session_write_close()
    [function.session-write-close]: SQLite: session write query failed: database is
    full in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42 Warning:
    session_write_close() [function.session-write-close]: Failed to write session
    data (sqlite). Please verify that the current setting of session.save_path is correct
    (/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb) in
    /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php ....
  9. Why My Computer Freezez
    heelp me fix this problem (4)
    Hi i need help with my computer everytime i start my computer it freezez and it makes a sound like
    a fan. I told my uncle but he said he dint found anything that it could be the hardware but he dint
    told me how to fix it (he works with computer) I think that the problem is that the computer needs
    a clean up from inside. ....
  10. Credits Problem
    (14)
    Well thanks to BuffaloHELP now my problem is solved and I can login to my cPanel anytime I want to
    and I already started building my website and everything is going smoothly so far /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> but there's still one
    simple problem that needs to be solved and it has something to do with my credits because when
    BuffaloHELP re-activated my account and changed my status from HOSTED back to MEMBERS and then I
    created my hosting account all over again with the same login information I requested when I f....
  11. Cannot Connect To Mail Server
    (3)
    Hello My server cannot connect to mail.myserver.com beacause of network or other reasons that i
    don't know about that. So that cannot send mail to ...@myserver.com. /unsure.gif"
    style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> Is any specific
    server that forward our mail with defined fields such as 'from','to','forward
    to','title','body',.....? /sad.gif" style="vertical-align:middle" emoid=":("
    border="0" alt="sad.gif" /> Or so on...............? please help me. /blush.gif" style="ver....
  12. Flash Media Into Html/css Website
    does anyone know how to import a flash into a webpage with transparenc (1)
    Hi I need some help , Im designing this website for school studies However, I made a flash drop down
    menu, works perfectly, but you know how flash has a background when you export it in to a SWF file?
    For example my flash is width= 800, and height = 200 but my div box on my html page for my
    navigation is only 50 px my buttons is width of 50px and the rest of the content is the drop down
    animations i want to insert it into my navigation div box but i want to set the flash background to
    transparent so that when the drop down menu comes down it overlaps the text or whateva....
  13. Learn Html, Css, C And C++ Online For Free
    Wanna learn to write programs and/or make websites? You can do it fre (12)
    Have you ever used an application or played a game and thought, "If you could only..." or "If I knew
    how I would add..." but didn't know where to start? I did and decided to do a lil research. I
    came across a site with great tutorials. There are many ranging from beginner all the way to
    advanced. After each tutorial there is a test to practice what you just learned. I dunno if I am
    allowed to post the url to these sites here due to spam filters but I will say that if you search
    for "c programming" in any major search engine it should be the first link (after the....
  14. Html Form!
    Using MySQL?! (4)
    Hey, I need your help again! I need some good working tutorial how I can update my SQL through
    HTML form. I did use some tutorials online found with the help of google; but they do not work
    properly; I mean there are still small mistakes. I need to have a good tutorial to follow. It
    should be based on security and more things. It has to be done in proper way.......
  15. Has Anybody Tried Ms Expression Web Html Editor
    It's much better than Frontpage (3)
    I was desperate to finish a site I was designing after I lost my hard drive and my software. I
    downloaded Expression Web from the Microsoft site for a 3 month free trial, and guess what? It's
    surprisingly good! Nothing like that crappy frontpage, it's standards compliant and very
    good for writing CSS. Haven't heard anybody mention the program and wondering if anybody else
    has tried it out. It's free to try from the MS site.....
  16. Flash Problem
    sometimes the buttons will load the wrong link. (9)
    Its weird but sometimes when you hit the forums or roster button on my flash banner it will load:
    www.childrenofconan.trap17.com/index.html instead of what its suppost to. It works fine, but if you
    mess around and click the buttons for a little bit you will notice this happening. This is a problem
    because people visiting the site will sometimes click the button once and be like oh I guess the
    link is broken and never come back, if anyone has a solution to what could be the problem it would
    be awesome. This is one of my first custom flash banners and im just confused what....
  17. Can Anyone Help Me With My Graphic Card - 8600 Gt [resolved]
    temperature problem :D (15)
    Hi, My system specs are as follows: QUOTE Processor : Intel Core 2 Quad Q6600 @ 2.4 GHz
    Motherboard: nVidia 650i Ultra RAM : 2 GB GfxCard : XFX 8600 GT (512 MB) Problem is all of my
    nVidia component are now managed by a single Control panel - nVidia Control panel and it doesn't
    show any tab for graphic's card temperature. I want to know the temperature of my graphics
    card. does any body know any software for this ?? or at least a work around ? thanks /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
  18. Mysql-essential-5.0.51 Installion Problem
    please help me.(urgent) (2)
    Dear friend, please help me. Iam working on php project (matchmaking site). I have downloaded mysql
    essensial 5.0.51. When i was installing mysql 5.0.51, i got following error - Error 1901: Error
    attempting to read from the source installation database:
    c:\windows\installer\527ec6.msi What is solution of this problem ? Iam using
    windows xp professional version 2002 (service pack 2). Please post your reply. Iam waiting for your
    answer. ....
  19. Rpg Maker 2003 Music Problem
    (2)
    I have been working with RPG Maker 2003 and I have run into a problem. When I open the BMG tab I
    try to listen to music. However, when I click play nothing happens. I have the Rtp file with the
    standard midis in it. But they just wont play. The WAV files included do play. The only way they
    seem to play is if I put all of the files into my windows media player. Once the first song has
    played and as long as the player is running I can listen to songs via the RM2K3 program. However,
    if I stop the player or mute the player I can't hear them on the program. I'....
  20. Problem With My External Hard Disk
    (4)
    I have a Sony VAIO 100GB External Hard drive that has recently been acting up. I got it from eBay
    about 8 months ago. Yesterday I accidentally pulled the plug on it and I accidentally used windows
    vista (which currently has no anti-virus program). Today when I turned on the computer it said
    'Unable to write to disk, please make sure that the device is plugged in' I did the
    'safely remove hardware' thing, but then the computer became really slow... So I waited and
    waited... for 6 minutes, then I waited long enough and pulled the plug. I tried to restar....
  21. Where Is There A Good Site To Learn Web Html?
    (18)
    im a noob when it comes to web html to design web sites, can some one tell me where to find a good
    website that has good tutorials on how to use web html?....
  22. Html Code Tester. Online Script
    (15)
    Yes, yes. I have another script that I have written and I am distributing. I am not entirely sure if
    this works. I have not tested it yet, but I will later and post back with a demo and fix it up.
    Current script: CODE <?php //Save this as something like htmltest.php function
    CheckForm() { $html_unsafe=$_POST['code']; //Gives us our user
    input $html_safe=str_replace("<?php"," ",$html_unsafe);
    //Starts security measures $html_safe=str_replace("?>","
    ",$html_sa....
  23. Help! Php Or Just Html?
    i want to start buliding my website. which is better, php or basic htm (13)
    i try to start this topic in webhost category but it seems like i cant. i dont have the permission
    so i just post my topic here. im sorry mod.. i want to build a website which contains: - Links to
    videos - Informations - photos - flash i don't know if i should use php or just HTML. guys,
    what are your opinions..??....
  24. How To Reformat Your Harddrive...
    Is your computer slow, reformatting will fix the problem! (10)
    To use this tutorial you first must have prior knowledge of computing and basic experience within
    them. *****WARNING!***** This can damage your PC, if you perform the actions incorrectly.
    ****************** HERE WE GO! 1. Backup all important information on your computer, as
    everything will be deleted. 2. Make Sure you have your Windows XP CD at hand (We need this to
    re-install Windows!) 3. Restart your PC and press 'DEL' (or the key that boots into your
    bios) when prompted. 4. Change the boot sequence to boot from your CD drive first. (This v....
  25. Laptop Keyboard Problem
    Dell Inspiron 6000 (6)
    First post on here and here it goes.... I got a laptop the "A" button now doesn't work. I pryed
    off the black top to check if any dirt or liquid is under there and cleaned it put it back on and it
    still doesn't work. I ordered a keyboard for my laptop off ebay. Now how exactly do i take off
    the old one and put a new one in? Thanks....
  26. Adding Rows & Columns In Html Table Using Javascript
    (1)
    I'm trying to create a website with a form that collects some user information to store in MySQL
    database. However, I've a problem when I want to dynamically add new rows and columns in the
    HTML table so that the user can add more information in the dynamically added textboxes. Here's
    what I have: CODE                  <table border="0" width="90%"
    align="center" id="itemsTable">                   <tr>
                       <td width="20%">                     Quantity                   
    <....
  27. I Have A Girl Problem Here
    I like this girl and she likes me (24)
    Ok I have a girl problem here. I like this girl and she likes me back but there is a small problem.
    She already has a boyfriend. I want to go ask her out but as you see she has a boyfriend. So my
    question is what should I do. We are good friends and know each other pretty well.....
  28. Dotworlds Free Domain Problem!
    Dotworlds offers dot[anything] domains but I need help! (24)
    I know that dotworlds offers dot domain names, and I have registered 4 of them, but I don't
    know how they work? It says that you have to have a plugin to view the domains registered from
    dotworlds, but I'm trying to figure out how to redirect the domain to the one I own. I've
    registered http://jesus.christ from dotworlds, and I want it to redirect to
    http://theheavenlyfather.com . What do I do?....
  29. Does Anyone Know Where I Can Get A Free Html Maker
    (13)
    I was curious. There is a program clled dreamweaver which does what I want but it cost to much.....
  30. where did you learn html from?
    (84)
    HI, i am intresting in knowing where you began learning html of what inspired you to start learning
    html. which programs did you use or which progs dyu use?....

    1. Looking for problem, target, html

Searching Video's for problem, target, html
Similar
I Cannot See
My Website
Or Log Into
Cpanel
Need Help:
Problem
Seeing My
Site - maybe
i screwed
up?
[chsupport
#ecn-115724]
: Ftp/cpanel
Login
Problem
Harddrive
"open
With..."
; Problem
Add Flashing
Inbox To
Invisionfree
Forum - Html
code for
invsiionfree
!!
Fantastico
And Cpanel
Skin
Problem.
Weird Write
Problem
Phpmyadmin
Problem
[resolved]
Why My
Computer
Freezez -
heelp me fix
this problem
Credits
Problem
Cannot
Connect To
Mail Server
Flash Media
Into
Html/css
Website -
does anyone
know how to
import a
flash into a
webpage with
transparenc
Learn Html,
Css, C And
C++ Online
For Free -
Wanna learn
to write
programs
and/or make
websites?
You can do
it fre
Html
Form! -
Using
MySQL?!
Has Anybody
Tried Ms
Expression
Web Html
Editor -
It's
much better
than
Frontpage
Flash
Problem -
sometimes
the buttons
will load
the wrong
link.
Can Anyone
Help Me With
My Graphic
Card - 8600
Gt
[resolved] -
temperature
problem :D
Mysql-essent
ial-5.0.51
Installion
Problem -
please help
me.(urgent)
Rpg Maker
2003 Music
Problem
Problem With
My External
Hard Disk
Where Is
There A Good
Site To
Learn Web
Html?
Html Code
Tester.
Online
Script
Help!
Php Or Just
Html? - i
want to
start
buliding my
website.
which is
better, php
or basic htm
How To
Reformat
Your
Harddrive...
- Is your
computer
slow,
reformatting
will fix the
problem!
Laptop
Keyboard
Problem -
Dell
Inspiron
6000
Adding Rows
&
Columns In
Html Table
Using
Javascript
I Have A
Girl Problem
Here - I
like this
girl and she
likes me
Dotworlds
Free Domain
Problem!
- Dotworlds
offers
dot[anything
] domains
but I need
help!
Does Anyone
Know Where I
Can Get A
Free Html
Maker
where did
you learn
html from?
advertisement



Problem With 'target' In Html



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE