1

I have a link on a page which when clicked should open the content in a new tab. How should I do this?

3
  • you could do something like window.open("some_page.html#someTab", ""); with some js code fetch the hash value and open the tab.. Commented Dec 30, 2013 at 5:47
  • @Sudhir: I think i did not frame the ques properly.. When I say "tab" what I mean is I have created tabs on a page for differetn sections of data.. I want to open that particular tab Commented Dec 30, 2013 at 5:52
  • is "tab" means different "Div" in same page? Commented Dec 30, 2013 at 6:45

1 Answer 1

3

I think you want to load page on new tab.Try hyperlink with target new like this :

<a href="http://www.google.com" target="_new">Open google on new tab</a>
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.