Current location: Hot Scripts Forums » General Web Coding » JavaScript » A bug of Firefox


A bug of Firefox

Reply
  #1 (permalink)  
Old 03-25-10, 08:21 PM
paolodinhqd paolodinhqd is offline
New Member
 
Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Hazard A bug of Firefox

hi all

Code:
<iframe src="http://google.it" onload="msg();">
</iframe>

<script>
function msg() {
  alert("google loaded");
}
</script>
this script works fine with all browsers
a message will appear.
but firefox shows nothing.
u guys know why?
Reply With Quote
  #2 (permalink)  
Old 03-26-10, 06:37 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Check the DOCTYPE - iframes may not be supported.
Reply With Quote
  #3 (permalink)  
Old 03-26-10, 06:46 AM
paolodinhqd paolodinhqd is offline
New Member
 
Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
i wrote in my script: alert();
this is considered by firefox as syntax error i think
but it works when written as: alert("");
only firefox has this problem
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox Display Problem With My Website isaac2450 Script Requests 1 04-24-08 11:51 AM
Firefox bug? zoliky The Lounge 1 10-30-07 05:24 PM
firefox 2 background bug fix? hinch CSS 0 11-09-06 04:07 PM
Firefox Bug ? zetop JavaScript 0 07-06-04 03:19 PM
Bug Reports Forum Rules Ryan HotScripts Site Bug Reports 0 06-06-03 02:33 PM


All times are GMT -5. The time now is 02:02 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.