SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: javascript windowing
-
May 26, 2001, 08:53 #1
- Join Date
- Apr 2001
- Posts
- 32
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
javascript windowing
I have a page with several pop-up menus, each containing links to other sites. I call a function popLink() from the onChange handler in the <select> form element. This is the guts of popLink():
Code:if (eval ("typeof(" + name + "Win) != 'undefined'")) { eval (name + "Win" + ".focus()"); } else { eval (name + "Win" + " = window.open(url,name,win_attr)"); }
Code:if (eval (name + "Win"))
I know there is a way to do this but I guess I am too retarded to figure it out. Any help would be greatly appreciated.<<< johnny chidiac
johnnydaboy@mac.com
-
May 26, 2001, 09:19 #2
- Join Date
- Mar 2001
- Location
- Mexico
- Posts
- 1,287
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Try
Code:if (eval (name +".closed == true") ) { .. }
Paul
-
May 26, 2001, 09:22 #3
- Join Date
- Mar 2001
- Location
- Mexico
- Posts
- 1,287
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
BTW, welcome to Sitepoint forums johnnydaboy!!
-
May 26, 2001, 09:37 #4
- Join Date
- Apr 2001
- Posts
- 32
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks Paul
That worked perfectly!
And thanks for the welcome, too!<<< johnny chidiac
johnnydaboy@mac.com
Bookmarks