unwanted about:blank page

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

unwanted about:blank page

Postby bharradine » Wed 13 Apr, 2005 5:49 pm

I have a web page with an image to which I have attached an "href" link to "#" and included on onclick() event to open a new window with a linked document in it. This works fine in IE6 but in NS 7.2 and Firefox it opens the document, full page in one window and then gives me an about:blank page with no document in it.

How do I go about getting my document opening up in that new window? I tried other variations like using <a href="javascript:void();" then adding the onclick="window.open(), etc. but that doesn't work.

Here is part of my code cut and pasted. I am using the DW function for opening a new window, you can see.

[tt]<a href="#" onclick="MM_openBrWindow('documents/AAandGR.doc', 'DocumentView1', 'toolbar=yes,scrollbars=yes,resizable=yes,top=100,left=90,width=800,height=400,true');" ...[/tt]
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Bryan Harradine
User avatar
bharradine
new member
new member
 
Posts: 1
Joined: Wed 13 Apr, 2005 5:25 pm

Postby Antony » Wed 13 Apr, 2005 6:52 pm

What you are using is Macromedia (Dreamweaver)'s [tt]MM_openBrWindow[/tt] function.

You can replace the that with:

Code: Select all
<a href="#" onclick="windows.open('documents/AAandGR.doc', 'DocumentView1', 'toolbar=yes,scrollbars=yes,resizable=yes,top=100,left=90,width=800,height=400,true');" >
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.5.7 (KHTML, like Gecko) Safari/125.12
User avatar
Antony
diamond member
diamond member
 
Posts: 14510
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia


Return to Web Design and Page Coding

Who is online

Registered users: Google [Bot]