|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm using a javascript popup window so that when a user clicks on a link, the popup window comes up with some information.
However, is there a way to make it so that if the user doesn't have javascript enabled, it goes straight to that page that would have been in the popup window? I've seen some places use a <noscript> thing.. Is it possible to use with a popup window, and if so, how? Below is my javascript (which I got from a javascripts website): <script language="JavaScript"> function Browser() { if (navigator.appVersion.indexOf("(X11") != -1 | | navigator.appVersion.indexOf("(Mac") != -1) return 1 else return 0 } function Description(url,dow,winwidth,winheight) { if (stat == 0) { description=window.open(url,'descr','toolbar=no,location=no,directories=no,status=no,menubar=no,scro llbar=no,scrollbars=auto,resizable=no,copyhistory=no,width='+winwidth+',height=' +winheight) description.focus() stat=dow if (Browser() == 1 ) window.open(url,'descr') } else { description.close() if (stat != dow) { stat=dow description=window.open(url,'descr','toolbar=no,location=no,directories=no,status=no,menubar=no,scro llbar=no,scrollbars=auto,resizable=no,copyhistory=no,width='+winwidth+',height=' +winheight) description.focus() if (Browser() == 1 ) window.open(url,'descr') } else { stat=0 } } } </script><script> stat=0 dow=0 </script> And the link: <a href="Javascript URLescription('http://www.domain.com/popup.php3','10','300','275')"> |
|
#2
|
|||
|
|||
|
Try putting just a normal text link inside the noscript tags.
Spookster ------------------ Visit the WSAbstract Help Forum for your Javascript, DHTML, or General Web Design Questions |
|
#3
|
||||
|
||||
|
hi,
I was trying to do the same thing, check if the browser has JS and if so enable popup windows else use normal HTTP hyperlink. Being a total JS neewbie i didn't quite understand your response, though, spookster. What would the code look like for this ? Thx in advance nick |
|
#4
|
||||
|
||||
|
hi,
I was trying to do the same thing, check if the browser has JS and if so enable popup windows else use normal HTTP hyperlink. Being a total JS neewbie i didn't quite understand your response, though, spookster. What would the code look like for this ? Thx in advance nick |
|
#5
|
||||
|
||||
|
Spookster is referring to ,
<NOSCRIPT>stuff for javascript disabled browsers</NOSCRIPT> + if you do a javascript redirection for javascript enabled browsers using the <body onload="yourRedirectFunction()"> etc only javascript enabled browsers will get redirected anyway - others 'should' ignore it, and carry on down your page as per normal. - I say 'should' cos nothings written in stone with earlier versions of NS and IE. ------------------ Simon Wheeler FirePages -DHTML/PHP/MySQL |
|
#6
|
|||
|
|||
|
Also try this cut and paste script. It is a jaavascript enabled/disabled redirect script.
http://javascript.internet.com/user...d-redirect.html Russ |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > pop up window, js not enabled? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|