IE Problem w/ Fixed Window Javascript

Need technical advice on coding your web pages? Covers HTML, JavaScript, CSS, and some server side technologies. Also the issue of some webpages not displayed well.

Moderator: Don_HH2K

IE Problem w/ Fixed Window Javascript

Postby EricD2001 » Fri 14 Jul, 2006 11:44 am

I used the following code on my index page:

Code: Select all
onclick="window.open('ct_main.html', 'CrypticThinking Productions', 'width=990,height=730,resizable=no')"


It works grand spiffy on FireFox browsers, but on IE, when a user clicks it, the page doesn't load anything. They just get a little Caution icon in the bottom left of the screen saying there's an error on the page.

I am relatively new to web-design, but have a general idea. Did I need to declare a function in the heading? If so, I'd appreciate any assistance! Thanks.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.3
EricD2001
new member
new member
 
Posts: 2
Joined: Fri 14 Jul, 2006 11:39 am

Postby EricD2001 » Fri 14 Jul, 2006 1:50 pm

Found the solution:

Code: Select all
onclick="javascript: window.open('ct_main.html', '', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=990,height=730'); return false">


This is the better code. The prior code in the previous post is not IE compatible it appears.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.3
EricD2001
new member
new member
 
Posts: 2
Joined: Fri 14 Jul, 2006 11:39 am


Return to Web Design and Page Coding

Who is online

Registered users: Google [Bot]