সহায়তা খুঁজুন

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

আরও জানুন

cannot get a javasript alert to work in FF, but the same alert works in IE, Chrome, Opera.

  • 4 উত্তরসমূহ
  • 1 এই সমস্যাটি আছে
  • 31 দেখুন
  • শেষ জবাব দ্বারা Yiki

more options

Just trying to get the below alert message to display in FF, but it won't. It works in other browsers. I checked the settngs in Options/Content and Javascript is on. This could be obvious but I can't see anything.

alert("Example message!");

Just trying to get the below alert message to display in FF, but it won't. It works in other browsers. I checked the settngs in Options/Content and Javascript is on. This could be obvious but I can't see anything. alert("Example message!");

সমাধান চয়ন করুন

Try "text/javascript" for your type attribute. Firefox does not run jscript.

প্রেক্ষাপটে এই উত্তরটি পড়ুন। 👍 0

All Replies (4)

more options

How and where are you trying to run that JavaScript code?

You can no longer run JavaScript code via the location bar in Firefox 6 and later.
You can use the Scratch pad (Firefox > Web Developer > Scratchpad; Shift+F4) to run JavaScript code.

more options

It references a javascript file from the head tag. See code sample below. It works in other browsers without any problems.

<head>

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Example</title>
<script type="text/jscript" src="example.js"></script>

</head>

And this is the code in the javascript file: alert("Example message!");

more options

চয়ন করা সমাধান

Try "text/javascript" for your type attribute. Firefox does not run jscript.

more options

Thanks, knorretje. That worked.