homepage Welcome to WebmasterWorld Guest from 54.196.167.69
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Marketing and Biz Dev / Cloaking
Forum Library, Charter, Moderator: open

Cloaking Forum

    
Inserted Cloaking Code, Won't Open New Window
Using FP '02, New Cloaking Code Disables Target_Blank & Opens Sam Window
Mickie




msg:3767544
 2:16 am on Oct 17, 2008 (gmt 0)

hello everyone,

i want to open url in new window. i had no problem with this action, that is before inserting my new cloaking code into frontpage 2002.

can someone share how to "alter or instruct me on what to insert within" this code to allow it to open in a new browser window. it seems to be overriding target_blank (which i have set to "open new window").

here's the code:

<a onClick="parent.location.href='http://www.example.com/example.php/'; return event.returnValue=false" target="_blank" href="http://www.example.com"><img class="imageright" alt="Example" align="right" border="0" src="images/example.gif" width="177" height="162"></a>

thanks,
mic

[edited by: Mickie at 2:19 am (utc) on Oct. 17, 2008]

[edited by: incrediBILL at 5:19 am (utc) on Oct. 17, 2008]
[edit reason] exemplified code [/edit]

 

Receptional Andy




msg:3768778
 7:11 pm on Oct 18, 2008 (gmt 0)

You have a javascript onclick event which sends the user to /example.php. If you want this to open a new window you should use the window.open function instead (i.e. onclick="window.open('example.php','');").

Mickie




msg:3770795
 10:59 pm on Oct 21, 2008 (gmt 0)

That simple change did it. Thanks.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Marketing and Biz Dev / Cloaking
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved