Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- handy, generic javascript coding


tedster - 8:54 am on Oct 25, 2001 (gmt 0)


POP-UP FUNCTION
with a 'vanilla' link for spiders

Using the same custom pop-up function from above:

<a href="page.html" onClick="cPop('page.html','window1',www,hhh);return false">Link Text</a>

Spiders and visitors with JS turned off get a regular link to follow. JS users get the pop-up. The ;return false keeps the original page from changing when a visitor gets the pop-up.

[edited by: tedster at 5:23 am (utc) on April 14, 2005]


Thread source:: http://www.webmasterworld.com/javascript/567.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com