|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a javascript for opening an URL in a new window. It works on certain browsers, and particularly in IE5 it generates an error and does nothing. can anyone explain why?
|
|
#2
|
|||
|
|||
|
could you post your script here so we can see what exactly you're doing?
|
|
#3
|
|||
|
|||
|
Thank you,
the code is: function openanother(where_at) { opc = "toolbar=0,status=0,menubar=0,scrollbars=0," + "resizable=1,width=430,height=430"; vent=window.open(where_at,"Presentation", opc); } call made like this: <A HREF="javascript URLpenanother('fichas/index.htm')"> <IMG SRC="imagen/b-biblio40.gif" WIDTH="50" HEIGHT="40" ALIGN="BOTTOM" BORDER="0" HSPACE="5" NATURALSIZEFLAG="0"></A> However, I executed the following programs (from START->RUN), and it worked after I rebooted the machine: regsvr32 actxprxy.dll regsvr32 shdocvw.ddl Do you have something to say about the code so my visitors won't have to execute these two programs for making it work? |
|
#4
|
|||
|
|||
|
i've had some problems as well with opening windows from direct javascript links, maybe you could try calling the javascript as follows:
<a href="#" onClick="openanother('fichas/index.htm')">whatever</a> my problem was that if i did it the other way (your way) a page saying [object] or so was loaded in the window you clicked the link from.. maybe this helps... |
|
#5
|
|||
|
|||
|
this way it works fine for me (in IE5):
<!--start--> <script language=javascript> function openanother(where_at) { opc = "toolbar=0,status=0,menubar=0,scrollbars=0,resizable=1,width=430,height=430"; vent=window.open(where_at,"Presentation", opc); } </script> <a href="#" onClick="openanother('http://aardbei.scene.org')">some link</a> <!--end--> so i guess it should work for you as well? URL |
|
#6
|
|||
|
|||
|
Thank you. I will try it that way too.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Next Page in a new window for IE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|