View Full Version : clickin on a link and openin it on new page

01-17-2004, 08:26 AM
does anybdoy no the script so that when u click on a link, the link opens up in a different page?

01-17-2004, 11:39 AM
*posted by accident, sorry*

01-17-2004, 11:40 AM
Yes, but why would you want to do it? Reasons against: The code isn't xhtml 1.1 compliant
It annoys people very much
A lot of browsers will block it if you try, anyway.Here's the code, anyway (theoretically):
<a href="page.html" target="_new">Link Text</a>Alternatively:
<a href="#"
'width=360, height=400, toolbar=no, resizable=yes, scrollbars=yes, top=10, left=10')">
Link Text

Paul Jr
01-17-2004, 08:13 PM
To build on what me' posted...

<a href="index.html" onclick=" window.open(this.href, 'pageTitle', 'width=360, height=400, toolbar=no, resizable=yes,
scrollbars=yes, top=10, left=10'); return false;"> Link Text </a>

To make sure users without JS can still access the page.

01-18-2004, 04:51 PM
thanks so much. totally solved my problem.