Reply to Re: Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content

Your name:

Reply:


Posted by Randy Webb on 02/08/07 00:02

STILL LEARNING said the following on 2/7/2007 5:40 PM:

[Followup-To set to comp.lang.javascript]

> I'm not sure if this can even be done, but what prompts the question
> is my desire to be able to create an "Uber Link" script/code of some
> sort, such that even if the html page contains nothing but a
> background image -or- a background color -- in other words, the page
> has neither content nor placed images -- any click, ANYWHERE, will
> launch the URL in your browser.
>
> I realize I can make traditional text links and graphics links; what
> I'm looking for is to be paroled from these . . . and making the
> entire page, whether empty or not, one big CLICK.


<body onclick="goThere('someURL')">

function goThere(URL){
alert('This is going to be really ANNOYING');
document.location.href = URL;
}

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация