- 1
how when we click our link then the htmlcode run automatically in browser please help me
please please it's Very important ..and then when we share our any web link the the code run automatically in browser ....
4 ответов
+ 2
It sounds like you're using the "a" ( anchor ) tag in a web code within Sololearn's Code Playground and you're confused by how a link like <a href="https://www.google.com">Google</a> won't work.
If that's the case, add target="_top" as in:
<a href="https://www.google.com" target="_top">Google</a>
The reason external links don't always work the way you want is because Sololearn runs its web codes in an iframe. Some websites like www.google.com are designed to not work in iframe. Setting target="_top" or target="_empty" causes the links to open outside of an iframe which then works.
+ 1
RDK07 asked "BUT how ji"
Response:
Can you ask a clearer question? How what?
Are you having trouble adapting the following link to work in your page?
<a href="https://www.google.com" target="_top">Google</a>
0
OK
0
BUT how ji