Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Create A Link to Open a Document in a New Window
How To Create A Link to Open a Document in a New Window? - XHTML 1.0 Tutorials - Understanding Hyper Links and URLs
✍: FYIcenter.com
Normally, if a hyper link is linked to a XHTML document, the browser will display the linked document in the same window as the current document. But if you want to the browser to display the linked document in a new window, you can add the target="_blank" attribute in the "a" tag of the hyper link.
Note that, the "target" attribute in valid only in the "Frameset" version of XHTML 1.0, so you have to use the xhtml1-frameset.dtd in your XHTML document.
Here is good tutorial example about opening the linked document in a new window:
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Open Documents in New Windows</title> </head> <body> <p>Click the hyper link to open the <a href="http://dev.fyicenter.com/faq/" target="_blank">FAQ Index Page</a> in a new window.</p> </body> </html>
If you save the above document as new_window.html, and view it with
Internet Explorer, you will see a hyper link. If you click it, the linked
document will opened in a new window:
2007-05-12, 5148👍, 0💬
Popular Posts:
How To Create an Add-to-Netvibes Button on Your Website? - RSS FAQs - Adding Your Feeds to RSS News ...
What is the difference between "calloc(...)" and "malloc(...)"? 1. calloc(...) allocates a block of ...
What is difference between custom JSP tags and JavaBeans? Custom JSP tag is a tag you defined. You d...
How To Delete a User Account? - Oracle DBA FAQ - Managing Oracle User Accounts, Schema and Privilege...
If locking is not implemented what issues can occur? IFollowing are the problems that occur if you d...