HighDots Forums  

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

Website Design comp.infosystems.www.authoring.site-design


Discuss Re: Need help creating a "Click absolutely ANYWHERE on this page"link for an HTML page with no content in the Website Design forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Randy Webb
 
Posts: n/a

Default Re: Need help creating a "Click absolutely ANYWHERE on this page"link for an HTML page with no content - 02-07-2007 , 07:02 PM






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

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

Quote:
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/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.