Forum Moderators: open

Message Too Old, No Replies

Url as Variable

         

gaucho

6:05 pm on May 14, 2005 (gmt 0)

10+ Year Member



It is possible reading an URL as variable?

example:

<A href="http://www.google.com" target="frmClient" title="Google:the best search engine!" onfocus="this.blur()"><center>Google</center></A>

I want reading the value of: [google.com"...] as variable, whose values is placed on an <input type=text>

?

Thanks again

gaucho

6:14 pm on May 14, 2005 (gmt 0)

10+ Year Member



Correting the spelling...

It is possible reading an URL as variable?
example:

<A href="http://www.google.com" target="frmClient" title="Google:the best search engine!" onfocus="this.blur()"><center>Google</center></A>

I want reading the value of: [google.com"...] as variable, whose values are placed on an <input type=text>

?

Bernard Marx

10:52 pm on May 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<A id="link0" href="http://www.google.com" target="frmClient" title="Google:the best search engine!" onfocus="this.blur()"><center>Google</center></A>
<input type="text" id="input0">
<script>
document.getElementById('input0').value = document.getElementById('link0').href;
</script>

-----------
onfocus="this.blur()"

Don't use this. It makes the link inaccessible to the tab key.