[thelist] pop-up window with no numbers in link
Hassan Schroeder
hassan at webtuitive.com
Wed Oct 23 11:10:01 CDT 2002
Reuben Whitehouse wrote:
> i need to have some links within a body of text that open up seperate
> javascript windows. the issue i have is that i can't have the numbers
> within the link that there usually are (eg. <a
> href="javascript:openNewWindow('pop-up_signup.php','thewin','height=400,widt
> h=399,toolbar=no,scrollbars=no')">). reason being i have a script that
> changes any numbers within the body text to being <sup></sup>,
So put the parameters in a function in the head of the document, or
in a separate file -- something like:
function openNewWindow(url)
{
window.open(url,'thewin','height=400,width=399,toolbar=no,scrollbars=no');
}
and the link looks like:
<a href="pop-up_signup.php" onclick="openNewWindow(this.href);">
HTH!
--
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
--- ---
--- dream. code. ---
More information about the thelist
mailing list