- 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 ....

24th Oct 2020, 9:10 AM
RDK07
RDK07 - avatar
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.
24th Oct 2020, 12:51 PM
Josh Greig
Josh Greig - avatar
+ 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>
25th Oct 2020, 2:47 PM
Josh Greig
Josh Greig - avatar
0
OK
25th Oct 2020, 10:54 AM
RDK07
RDK07 - avatar
0
BUT how ji
25th Oct 2020, 10:54 AM
RDK07
RDK07 - avatar