I was trying to create a mail link in webpage and
I used this:
mailme
when I click on the link indefinite new tabs are opening up.Can anybody tell me why this is happening
Remove target Property
<a href="mailto:malavika#gmail.com">
remove target attribute and close a tag
mailme
remove the target attribute
<a href="...">
Related
In my page, the current link is
https://mydomain/en/tools/mytool
I now want to go to
https://mydomain/en/tools/mytool/faqs
How can I create an a tag with a href value that goes to /faqs using relative links?
I tried
link
But the result is just
https://mydomain/en/tools/faqs
Does anyone know?
Thanks
You would use just:
link
I want to link one HTML page to another one. So, I use anchor tag
<a href="xyz.html>sign</a>.
As my "xyz.html" is in the current folder and on click on "sign", it does not work.
Even I also applied jQuery on click method.
Assuming "sign" is in your anchor tag, try this :
Sign
You not Close the double quote
sign
The<a> tag defines a hyperlink, which is used to link from one page to another
this is a line of code that makes an item in mocel a url to external site
but this is opening same tab not in a new tab.
little help would be much appreciated
#item.hello
remove the comma before the target and you should have the same quotes (either single or double) for all parts of the line of code and alternate them when required (such as in the body of the href as opposed to the start / end).
<a href='#string.Format("url/{0}",item.hello)' target='_blank'>#item.hello</a>
You have use:
#item.hello
You mustn't put , but here:
#item.hello
Like you can see it work
link
I am trying to simulate the click event of an anchor tag using watij on mac. I found the tag
<a name="myLink" href="" onClick=""></a>
My code is
Tag link = spec.jquery("a[name=myLink]").click();
But it does not seem to work. Please help.
Thanks & Regards,
Ankur Agrawal
You might try altering your reference to the link. Ex., referencing it by id or class, as shown here:
Hello
-
Tag link = spec.jquery("a.my_link").click();
Additionally, although I am not familiar with Watij, at this point in the code, are you positive that the <a> element has finished loading? You need to verify that all elements in the DOM have loaded before you simulate actions against them.
in html code how to make tag to open a link in another page ??
If by "another page" you mean a new window:
Text
More targets here: http://www.w3schools.com/tags/tag_a.asp
Add target="_blank" to the tag's attributes.
you want to say target="blank". Have a look here