• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Open New Window

Participant ,
Sep 23, 2008 Sep 23, 2008

Copy link to clipboard

Copied

I have a link to a page but I want to view it on a new window rather than the same window. How will I do that?
Thanks
TOPICS
Advanced techniques

Views

281

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 23, 2008 Sep 23, 2008

Copy link to clipboard

Copied

target = "_blank"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 23, 2008 Sep 23, 2008

Copy link to clipboard

Copied

LATEST
However, to pass W3C markup validation, you need to use onclick and/or onkeypress as follows:
<a href="web_page.cfm" onclick="target='_blank';" onkeypress="target='_blank';" title="This link opens in a new window">Go to web_page.cfm</a>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation