Jump to content

Make link text appear in textbox


Fenhopi

Recommended Posts

Textbox in the same page? Seems pointless if they are going to immediately move to a different page.

 

If you're trying to do it in a frame, I cry because your using frames.

 

Either case, javascript is your answer here.

<html>
<head>
<script>
function alertBox() {
alert(document.getElementById('link').href);
}
</script>
</head>
<body>
<a href="http://www.bigfatorgy.com" id="link" onClick="alertBox();">Test</a>
</body>
</html>

 

By the way, bigfatorgy.com is available. Hmm...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.