1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Java script error

Discussion in 'Software Development' started by mingoe, Nov 16, 2001.

Thread Status:
Not open for further replies.
  1. mingoe

    mingoe Thread Starter

    Joined:
    Jul 22, 1999
    Messages:
    15
    Greetings:
    I am attemting to write a script that will have a link open a pop up Window. The script works the first time, however, if I close the second window and click the link again I get a script error message and the pop up won't pop up. Here is the piece of code:

    function map() {
    map=window.open('areamap.jpg','map', 'width=720,height=568')
    }

    Call in Body
    a href="javascript:map('areamap.jpg')">Project Area

    Does anyone have any idea what can be going wrong here? Thanks in advance for any help.

    Mike
     
  2. mingoe

    mingoe Thread Starter

    Joined:
    Jul 22, 1999
    Messages:
    15
    Map=
    was causing the problem
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/58756

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice