I'm using Dreamweaver 4. I want to use the built-in link-controlling when I create popUp windows.
When I want to get the popUp, I wish I could write:
<a href=http://www.webdeveloper.com/forum/archive/index.php/"/media/help/default.asp"
onClick="popupFAQ();
return false">Link here</a>
Today I do it like this, which is not optimal:
<a href="#"
onClick="popupFAQ('media/help/default.asp');
return false">Link here</a>
How can I immediately grab the value of the HREF and pass this to the new window. In this way I could keep Dreamweavers excellent broken-link and linkupdater...
I use this as code behind:
function popupFAQ(filename) {
faq_window = window.open(filename,
"faq_window", "left=110,top=90,width=570,height=400,
resizable=1,scrollbars=1,toolbar=0,status=0,location=0,
directories=0,menubar=0");
faq_window.focus();
}
When I want to get the popUp, I wish I could write:
<a href=http://www.webdeveloper.com/forum/archive/index.php/"/media/help/default.asp"
onClick="popupFAQ();
return false">Link here</a>
Today I do it like this, which is not optimal:
<a href="#"
onClick="popupFAQ('media/help/default.asp');
return false">Link here</a>
How can I immediately grab the value of the HREF and pass this to the new window. In this way I could keep Dreamweavers excellent broken-link and linkupdater...
I use this as code behind:
function popupFAQ(filename) {
faq_window = window.open(filename,
"faq_window", "left=110,top=90,width=570,height=400,
resizable=1,scrollbars=1,toolbar=0,status=0,location=0,
directories=0,menubar=0");
faq_window.focus();
}