Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Inserted Cloaking Code, Won't Open New Window

Using FP '02, New Cloaking Code Disables Target_Blank & Opens Sam Window

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

New User

10+ Year Member

joined:Sept 4, 2008
posts: 11
votes: 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>


[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]

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

Senior Member

joined:Jan 27, 2003
votes: 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','');").
10:59 pm on Oct 21, 2008 (gmt 0)

New User

10+ Year Member

joined:Sept 4, 2008
votes: 0

That simple change did it. Thanks.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members