Forum Moderators: open

Message Too Old, No Replies

ASP version of body onload

         

Headed North

4:03 pm on Sep 29, 2006 (gmt 0)

10+ Year Member



I have a site that uses Javascript heavily and set up a detection to see if the user has Javascript disabled. If they do, I want to load a popup window automatically using ASP to display the "You have Javascript disabled..." text.

I'm using <NOSCRIPT><META HTTP-EQUIV="refresh" content="0; URL=http://www.sitename.com/javascript.asp"></NOSCRIPT> for the detection. On the javascript.asp page I want it to trigger a popup window to display my text but can't use any form of javascript.

Any ideas? Thanks!

encyclo

4:09 pm on Sep 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You cannot open a popup window with server-side code - only Javascript can do this. Don't forget also that a majority of users have unrequested popups blocked by their browser.

A better approach, rather than redirecting to a new page, is to offer alternative content/navigation within the

noscript
section(s). Search engine spiders such as Google don't support Javascript either, so this is also important for helping your site get indexed.

Headed North

4:15 pm on Sep 29, 2006 (gmt 0)

10+ Year Member



Thanks for the info. I use Javascript for button rollovers and a few other things (flipping photos on the site w/out reloading the page). Knowing this, will this Javascript affect spidering by Google?

Easy_Coder

3:50 am on Sep 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you're gonna go with heavy javascript navigation checkout getting a google site map so you won't have to worry about google bot not finding your stuff.