Log in

View Full Version : Value=href text



Brian_C_C
09-24-2007, 06:48 PM
Is this possible:

<a Target=_parent onClick="window.parent.form.textbox.value='get href text here'; return false" href=dining.html#city>This text becomes the value</a>

insanemonkey
09-24-2007, 06:53 PM
I dont think it is, becuase you have lavascript onlick witha url and then you have a href? I dunno

I dont get what you are trying to see...

could you explain it a little better,

are you trying to mak a popup to give a url?

Brian_C_C
09-24-2007, 06:57 PM
I have an iframe with hyperlinks in them. The hyperlinks change the value of textboxes in a form on the document containing the iframe in it. I don't want to have to set a value for every hyperlink (a few hundred of them).

The text with the onclick / href function is basically a list of addresses of businesses, stores, etc. or a tourist site I am working on.

I would like the onclick function to retrieve that text, not the hyperlink, but the text that is hyperlinked itself, and then submit that to my form.

insanemonkey
09-24-2007, 07:02 PM
oh i c... well I think you would have to ask javascript users that, sorry...

thanks tho..

Brian_C_C
09-24-2007, 07:04 PM
Np. is this the right place?

insanemonkey
09-24-2007, 07:06 PM
well I think you can do it, well it sounds like you would use javascript with this.... I dont really know, becuase I have never used this function with iframes that you are talking about...