...

View Full Version : How to open a document in new window in HTML 4.1 strict



kamkam
07-04-2007, 11:05 AM
HI;
I'd like to ask you How to open a document in new window in HTML 4.1 strict?

I tried to use the target="_black", the validate say that it is not allowed in HTML4.1 strict. Could anyone tell me which attribute i can use? Thanks
<a href="Country.html" target="_blank"> the country </a> <br>

Bill Posters
07-04-2007, 11:15 AM
principle outline e.g.

<a href="Country.html" onclick="window.open(this.href); return false;">the country</a>

kamkam
07-04-2007, 11:33 AM
It does not work when i open my page, there are nothing to display.

Bill Posters
07-04-2007, 11:49 AM
Post a url/link so we can see the rest of your code.

kamkam
07-04-2007, 11:55 AM
Hi Bill Posters;
It does work, i just make a mistake.

Thanks a lot

BWiz
07-04-2007, 06:31 PM
Within the window.open(), you can set certain arguments to change attributes of the window. Ref: http://www.pageresource.com/jscript/jwinopen.htm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum