Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML anchor link going to the same page with different query string

Within a web document (http://example.com/bla.php?x=123&y=321), is it possible to create an anchor link which goes to http://example.com/bla.php?z=111 without putting bla.php in the anchor's href?

like image 360
user1032531 Avatar asked Aug 03 '15 00:08

user1032531


People also ask

How do I link to an anchor on the same page?

To link to your newly-created named anchor, highlight the text, then click the Linkit button. In the "Link URL" field, add a "#" symbol and your anchor name: Click "Insert link" to add the link to your named anchor (on the same page).

Does hyperlink take you to another part of the same web page?

Hyperlinks are utilized by a web browser to move from one page to another. However, you can also move to a different area on the same page.


1 Answers

This should work:

<a href="?z=111">link</a>
like image 107
Steven Manuel Avatar answered Sep 24 '22 03:09

Steven Manuel