function openwindow() not working in Firefox Mac

Posted on 2006-05-27
Last Modified: 2012-08-13
I have been using this script since we went live 1 1/2 years ago. I was shocked to see tonight that it doesn't work in mac Firefox.  It does in IE, Safari, Netscape, and Firefox on the PC.  Any ideas or suggestions on how to fix?


<script type="text/javascript">
function openwindow()
{"<%=(product_details.Fields.Item("Product_ID").Value)%>","Details", "toolbar=no,location=no,directories=no, status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=400,height=475")

Here's the link

<a href="javascript:;" onclick="openwindow();return false;"><img src="<%=(product_details.Fields.Item("Catalog_Detail").Value)%>" width="225" border="0" galleryimg="no" /></a>
Question by:stroudtx
    LVL 10

    Expert Comment


    Hmmm. I don't have a mac but maybe this will work.  I made two changes.

    - double quotes to single quotes for Product_ID
    - Used div instead of anchor tag

    <script type="text/javascript">
    function openwindow()
    {"<%=(product_details.Fields.Item('Product_ID').Value)%>","Details", "toolbar=no,location=no,directories=no, status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=400,height=475")
    <div onclick="openwindow()">
       <img src="<%=(product_details.Fields.Item("Catalog_Detail").Value)%>
    LVL 18

    Accepted Solution

    <a href="#" onClick="this.href='javascript:openWin()'">

    function openWin() {
        windowHandle =,'windowName','width=200,height=200' etc etc etc);

    Author Comment

    thanks - I'll give it a try

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Suggested Solutions

    Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
    Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now