|
||||||||||
|
|||||||
| GoogleCommunity Sponsor |
Use coupon "forum" for 50% Off! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Noogle
![]() Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
Site that crashes IE but not Firefox
This site will crash IE BUT not FIREFOXbrbrhttp://www.modernlifeisrubbish.co.uk/crash-ie.htmlbr
|
|
|
|
|
Sponsored Links
|
|
|
|
#5 (permalink) |
|
Elite Googler
![]() Join Date: Oct 2006
Location: Ireland
Posts: 1,085
Thanks: 0
Thanked 2 Times in 2 Posts
![]() |
I'm pretty much sure that your javascript runs IE into infinite loop:
This is your line: for(x in document.write){document.write(x);} ....what are you trying to achieve by this? If you trying to print out DOM structure, this will work for you: for(x in document){document.write(x+'<br/>');} |
|
|
|
|
|
#6 (permalink) | |
|
Google Freak
![]() Join Date: Feb 2007
Posts: 340
Thanks: 7
Thanked 8 Times in 8 Posts
![]() |
Quote:
|
|
|
|
|
|
|
#7 (permalink) |
|
Elite Googler
![]() Join Date: Oct 2006
Location: Ireland
Posts: 1,085
Thanks: 0
Thanked 2 Times in 2 Posts
![]() |
Well, first of all, I can't figure out what you're trying to do with this function.
Do you know yourself what should be happening when you call it? Well, In the "for" statement, you're using "document.write" which returns javascript string object. And string object has two properties: * length - The number of characters in the string. * prototype - For creating more properties See yourself: for(x in document.write){ alert('type:'+typeof(x)+',length:'+x.length); } Then you're trying again to write string object into browser. I assume Firefox displays "prototype" as the last property found for this object . And only God knows what's happening with IE...... You should check javascript reference on strings: http://www.javascriptkit.com/jsref/string.shtml |
|
|
|
|
|
#9 (permalink) |
|
Google Freak
![]() Join Date: Feb 2007
Posts: 340
Thanks: 7
Thanked 8 Times in 8 Posts
![]() |
Hi alex-party,thanx for your reply. Well,honestly I have no idea whatsoever..but just had a feeling to know the actual reason. I am learning on this and hope to give u the answer on any given day...Thanks!
|
|
|
|
|
|
#10 (permalink) |
|
Senior Googler
![]() Join Date: May 2007
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
I have also experienced it on my blog before...I.E is more sensitive than Firefox. So we should be more careful on the codes like Javascript or maybe there's a missing codes that are not acceptable in I.E. that's why...
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Make out with Firefox -- Firefox fun for Movable Type users | Randy | Web Browsers and Statistics | 4 | 09-06-2007 08:47 PM |
| GDS crashes Altiris agent | romp | Google Desktop Search Forum | 0 | 06-27-2006 06:11 AM |
| Can I put Google Ads on a site that's on a free hosting site | maximz2005 | Google AdWords & AdSense Forum | 7 | 05-14-2006 08:07 PM |
| Help ! This site infest my Firefox with a virus | Gothica | Web Browsers and Statistics | 9 | 02-24-2006 04:42 PM |
| Mozilla Firefox Not displaying any google site correctly | brightlight213 | Web Browsers and Statistics | 6 | 06-21-2005 07:45 AM |