Click to See Complete Forum and Search --> : dead javascript links


bharrow
02-10-2004, 08:09 PM
On this particular laptop, I cannot get certain links on websites to activate. They are always addressed as follows:

javascript: . . . . . . .

For example:

javascript:winopen('/content/topics/promo.aspx/q1wk2_shoppers_choice?c=us&cs=04&l=en&s=bsd&~lt=popup','popup585x500','WIDTH=585,%20HEIGHT=500,%20RESIZABLE=YES,%20SCROLLBARS=YES,%20TOOLBAR=NO, %20LEFT=0,%20TOP=20');

I have another computer that opens them fine. What setting have I messed up in this laptop? Any ideas?

fredmv
02-10-2004, 08:12 PM
Welcome to the forums.

Try this:<script type="text/javascript">
//<![CDATA[
function openWin(uri)
{
var w = window.open(uri, '', 'width=585, height=500, scrollbars, resizeable');
}
//]]>
</script><a href="foo.html" onclick="openWin(href);return false;">bar</a>

bharrow
02-10-2004, 08:20 PM
I'm afraid I'm a newby and don't know what to do with the script you sent. I'm assuming that I have set a setting in Explorer or otherwise have a Java conflict problem. Is there an obvious setting that I should check?

fredmv
02-10-2004, 08:40 PM
The code I provided should work "as is". The only setting you should need to check is that JavaScript is enabled.

bharrow
02-11-2004, 01:03 PM
Where is the place I go in my browser to enable javascript. I went to Tools, Internet Options, Advanced. I don't see "javascript" identified anywhere, only java applets, console, etc.

AdamGundry
02-11-2004, 01:06 PM
http://webdevfaqs.com/javascript.php#enablejavascript

bharrow
02-11-2004, 01:13 PM
I'm probably in the wrong forum, because I'm not trying to develop web pages. The reason I started this thread is that I have experienced an inability within my browser (on this laptop only) to activate javascript links on other web pages (like Dell's website). I'm wondering if there's a setting somewhere or something else on this laptop that prevents the activation of those links. Any help would be appreciated.

jaegernaut
02-11-2004, 01:20 PM
Follow Adam's link and it will tell you how to check your scripting options for your browser.

bharrow
02-11-2004, 01:43 PM
I checked the link that Adam posted. I checked my scripting options and everything there looks OK. I disabled the popup blocker in Norton Personal Firewall. Still no help. Should I re-install the browser? Doesn't that cause headaches?