Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE DREAMWEAVER: HomeDreamweaver ForumDreamweaver TutorialsFAQAdobe FlashWeb Design

Re: Popup code not working as popup but regular link

Cow Forums : Adobe Dreamweaver
FAQ   •   VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Re: Popup code not working as popup but regular link
by Abraham Chaffin on Oct 28, 2009 at 3:33:53 pm

Your code looks correct and seemed to work in Chrome, FF, and IE when I tested it.

Only thing I'd add is that it is redundant:
The href address is being cancelled by the return false. The window open address is being opened in the new window as expected. If you didn't have the return false both the new window and the original window would go to the same location.

The method I generally use is to have the href direct to the new window by using a target pointed to the name of the new window. In this case popup. If you do this you don't need a return false.

FNMA 1004 URAR FHA

<a href="http://www.creativecow.net/"
onclick="window.open('','popup','width=650, height=900, scrollbars=yes, resizable=yes, toolbar=no, directories=no, location=no, menubar=no, status=no, left=50, top=0');" target="popup">FNMA 1004 URAR FHA</a>


Abraham


Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]