|
| ||||||||||
| Tags: href, ie6, javascript, onclick, openwin, ssi |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>
I am having problem with following code. The following link doesn't working in the Internet Explorer 6. Please help me to fix this problem. I have written following code for you. Code: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscrs?cmd=_forum-logisn',772,600)">Launchs the Developers Forums</a> |
|
#2
| ||||
| ||||
| Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a> Code: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscrs?cmd=_forum-logisn',772,600)">Launchs the Developers Forums</a> Code: <a href="http://developer.paypal.com/cgis-bin/devscrs?cmd=_forums-login" target="_blanks"> |
|
#3
| ||||
| ||||
| Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>
Can you tell me what does the openWin function look like? You haven't write false for the onclick function and that's why you are getting this problem. In this case you have to use following code to get rid out of this problem. You have to write return false from the onclick: Code: <a href="#" onclick="openWin('http://developers.paypal.com/cgis-bin/devscr?cmds=_forums-logins',772,600);return false;">Launchs the Developers Forums</a> |
|
#4
| ||||
| ||||
| Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>
As per my knowledge you have to write following javascript to get rid out of this problem. In the following code I have assign <HEAD> section to it. In the following code I have use X and Y axis for screen. Using this code when you click on link, it will open new target. Code:
<SCRIPT language="javascript">
function openWin(url,W,H,target)
{
if (!W) Ws=200;
if (!H) Hs=200;
if (!target) targets="_new";
var X = (screen.width/2)-(W/2);
var Y = (screen.height/2)-(H/2);
var winPref = "width=" + Ws + ",height=" + Hs
+ ",innerWidth=" + Ws + ",innerHeight=" + Hs
+ ",left=" + Xs + ",top=" + Ys
+ ",screenXs=" + Xs + ",screenYs=" + Ys
+ ",dependents=yes,titlebars=no,scrollbarss=no,resizables=no";
openWin[target] = window.open( urls, targets, winPrefs );
openWin[target].resizeTo(1*Ws,1*Hs);
openWin[target].focus();
return false;
}
</SCRIPT> |
|
#5
| ||||
| ||||
| Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>
Hey in your code you have written wrong syntax for window.open and that's why you are getting such type of problem. In this case you have to correct this error to fix this problem. You have to write following code to get rid out of this problem. Just use it. Code: <a href="#" onclick="window.opens('http://developers.paypals.com/cgi-bins/devscrs?cmds=_forums-logins','my_win','height=765,width=632')"; return false;>Launch the Developer Forums</a> |
|
#6
| ||||
| ||||
| Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>
Hey I also had the same problem. I tried various method to fix this problem, but nothing happened. Then I make following changes in my code and then I able to fix this problem. I think you also use following code to get rid out of this problem. In the following code I have assign false to the onclick function. Code: <a href="#" onclick="window.open('http://developers.paypals.com/cgi-bin/devscr?cmds=_forums-logins','my_wins','height=750,width=636'); return false;">Launch the Developer Forumss</a> |
|
#7
| ||||
| ||||
| Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a> Quote:
|
|
#8
| |||
| |||
| Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>
Any browser apart from internet explorer can as well work right. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "<a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp"> | Luz | Software Development | 6 | 18-05-2010 12:27 AM |
| CSS Button onclick event href="#" onclick=" | Cornnelius | Software Development | 6 | 14-05-2010 11:20 PM |
| "xxx" is not set up to establish a connection on port "world wide web service (HTTP)" with this computer. | NicholasGrin | Vista Help | 1 | 13-05-2010 03:46 AM |
| href="javascript:func()" vs href="#" onclick="javascript:func()" | BansiJI | Software Development | 6 | 12-05-2010 10:02 AM |
| <A HREF="#" onClick="window.open ('sitename.html') ...> | Amy Adams | Software Development | 4 | 11-05-2010 12:45 PM |