PDA

View Full Version : linking to a url


minpot
07-13-2007, 11:13 AM
Here i have been having some difficulties. When i want to link to a url; in DW I select my text and then on my properties editor i write the actual link i want to link to ; this gives me the link on the same browser window.
And if I apply a behavior to that same piece of text to open on a new browser window, it does, but also on the page i'm at also goes to that url; so i loose my page and have to hit the back button . . .
I want to have the link to that url in a new window without loosing where i'm at the moment.
Any suggestion in what to do?

edbr
07-14-2007, 02:39 AM
<a href="link.html" target="_blank">link</a>

with dream weave beneath the box Link select Target blank. Above is the code it will produce

minpot
07-14-2007, 10:20 AM
:-) It was the missing target = _blank i was missing. Thanks

chriskq
07-20-2007, 01:27 AM
you guys should use xhtml standards

therefor it will become:

<p>text text <a href="http://www.google.com" title="google" onclick="window.open(this.href);return false;">This is a link</a></p>

edbr
07-20-2007, 02:33 AM
why is that better?

chriskq
07-20-2007, 08:07 AM
its better because its adhearing to the standard of your doc type (in my case xhtml 1.0 strict)

target="_blank" is not valid in xhtml.

;)