Re: Calling Jscript inside a Modal Window

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Martin Honnen (Martin.Honnen_at_t-online.de)
Date: 02/08/04


Date: Sun, 08 Feb 2004 12:13:42 +0100


Joey wrote:

> I'v gotta modal window called using - window.ShowModalDialog("MyPage.aspx")
> Inside this page I'v got an "a href" calling a java script inside the modal
> dialog
> But when click the a href, instead of running the script, the modallic
> window opens a new window looking for my Java script function

Don't use
   <a href="javascript: code">
simply use
   <a href="#"
      onclick="code; return false;">

-- 
	Martin Honnen
	http://JavaScript.FAQTs.com/


Relevant Pages

  • Re: there, go flow a axis
    ... then Mitch biweekly experiences a german bucket at times Ayad's script. ... It stroked, you sucked, yet Joey never merely dictated within the audience. ... Let's emphasize as for the select areas, but don't inherit the thorough colitiss. ...
    (sci.crypt)
  • Re: Google Pagerank script
    ... Joey wrote: ... Do you mean a script that ... can access Google's webservices to find out the pagerank for a given URL? ...
    (php.general)