Friday, November 16, 2012

Answers > How Can We Make a Link on a Website Designed Using XHTML 1.0 Strict Open in a New Window?

How Can We Make a Link on a Website Designed Using XHTML 1.0 Strict Open in a New Window?

by nForms on June 24, 2012

How can we make a link on a website designed using XHTML 1.0 strict open in a new window?

Can it be done using XHTML?

Thank you in advanced for all your thoughts and views.

Tags: , ,

Similar XForms | XML Posts

{ 4 comments… read them below or add one }

Web Designer September 2, 2011 at 9:34 am

I use this in my tags to open a new window, but keep in mind that the browser user has control over how links open when clicked on:

<a href="copyrights_moreon.htm" title="Some examples of Copyright and how it works" onclick="window.open (this.href, ”); return false">Some examples of Copyright and how it works</a>

Also, viewer can right-click any of your links and select to open in new window or tab.

Ron

aerokan a September 2, 2011 at 9:34 am

Done sir

Ironhead September 2, 2011 at 9:34 am

The attribute target = blank in you anchor tag should open the url in a new window.

yorkcoparamedic September 2, 2011 at 9:34 am

<a href="homePage.php" target="_blank">Home Page</a>

There are few changes between HTML and XHTML, most formating, proper nesting, and self closing tags. There are a few others but for most people it will not affect them at all, like degraded tags and a few replacements or addons. You need to read up on it, so you know for future ref.

What Is XHTML?
XHTML stands for EXtensible HyperText Markup Language
XHTML is aimed to replace HTML
XHTML is almost identical to HTML 4.01
XHTML is a stricter and cleaner version of HTML
XHTML is HTML defined as an XML application
XHTML is a W3C Recommendation

Previous post:

Next post: