Forum Moderators: phranque

Message Too Old, No Replies

Link Question

run the link, but not go to the actual page

         

wfernley

2:38 pm on Jul 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey everyone,

I hope I can explain this good enough....

I have a link...<a href="/test.cgi?move=right">Move Right</a>.

Whenever I click the link it will run test.cgi?move=right but it will change the page to go to test.cgi. Is there anyway I can create the link that when a user clicks it, it runs test.cgi?move=right but doesnt actually go to the page?

Thanks in advance for your help :)

JoeT321

5:09 pm on Jul 7, 2005 (gmt 0)

10+ Year Member



Try <img src="/test.cgi?move=right">

but the user won't have to click on it, it will happen each time the page loads...

wfernley

5:16 pm on Jul 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hey

Thanks for the reply. I need it to be a link though so it only does it when the user clicks the link.

thanks though :)

Wes

JoeT321

6:05 pm on Jul 7, 2005 (gmt 0)

10+ Year Member



Not sure about this but try it anyway...

<BODY>
<iframe name = "frame1">
</iframe>
</BODY>

then on the <a href> for the link put

<a href="/test.cgi?move=right" target="frame1">Move Right</a>

I think that should work :)

wfernley

6:28 pm on Jul 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You are right! that did work. Just created a dummy frame and it works great.

thanks for your help!

Wes