By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,400 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,400 IT Pros & Developers. It's quick & easy.

Form works in IE and Opera, not Firefox nor Netscape

P: n/a
Bob
I've got a fair amount of Javascript coding that works great in IE and
Opera, but is completely ignore in Firefox and Netscape. See:

www.bridgemate.net/BeachWatchers/Regis.htm

Right after the <FORM NAME="Regis".....tag I have

<div onClick='getRadios(document.Regis)'>

which sends control to getRadios() when the user clicks anywhere on the
form...at least in IE.

Anyone have a clue as to the problem/solution..TIA

Jul 14 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Bob

I've narrowed down my problem to the "/r" feature inside an Alert

Alert("Something/rnext line)

prints out like this on IE

Something
next line

but like this on Firefox

Something next line

So, Firefox recognizes the /r, (by not displaying it) but it's not
changing to a new line.

Jul 14 '06 #2

P: n/a
On 13 Jul 2006 21:19:53 -0700, "Bob" <bo**@whidbey.com>:
>Right after the <FORM NAME="Regis".....tag I have

<div onClick='getRadios(document.Regis)'>
Try this:

<form id="whatever" NAME...
<div onClick='getRadios(document.getElementById("whatev er"))'>
Jul 14 '06 #3

P: n/a
Bob said the following on 7/14/2006 12:49 AM:
I've narrowed down my problem to the "/r" feature inside an Alert

Alert("Something/rnext line)
alert("something\r\nnext line")

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 14 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.