This is a discussion on How to set the default home page using php code in Firefox within the PHP Language forums, part of the PHP Programming Forums category; I used the javascript functions as shown below. <a href="javascript:;;;" onclick="this.style.behavior='url(#...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I used the javascript functions as shown below.
<a href="javascript:;;;" onclick="this.style.behavior='url(#default#homepag e)'; this.setHomePage(location.href);"> But this code works for IE, not for Firefox. While running this code, the firefox shows javascript error as this.setHomePage is not a function Is there any javascript function available for both the browsers? |
|
|||
|
On Mon, 12 May 2008 12:48:58 +0200, Anz <anzbmuhammad@gmail.com> wrote:
> I used the javascript functions as shown below. > <a href="javascript:;;;" Which is bad form.... > onclick="this.style.behavior='url(#default#homepag e)'; > this.setHomePage(location.href);"> > > But this code works for IE, not for Firefox. While running this code, > the firefox shows javascript error as > this.setHomePage is not a function > > > Is there any javascript function available for both the browsers? Ask in comp.lang.javascript, nothing to do with PHP. -- Rik Wasmus [SPAM] Now temporarily looking for some smaller PHP/MySQL projects/work to fund a self developed bigger project, mail me at rik at rwasmus.nl. [/SPAM] |
|
|||
|
On May 12, 11:48 am, Anz <anzbmuham...@gmail.com> wrote:
> I used the javascript functions as shown below. > <a href="javascript:;;;" > onclick="this.style.behavior='url(#default#homepag e)'; > this.setHomePage(location.href);"> > > But this code works for IE, not for Firefox. While running this code, > the firefox shows javascript error as > this.setHomePage is not a function > > Is there any javascript function available for both the browsers? 1) This is javascript 2) Anybody who tries to force their choice of start pages on me dies. |
|
|||
|
Gordon wrote:
> On May 12, 11:48 am, Anz <anzbmuham...@gmail.com> wrote: >> I used the javascript functions as shown below. >> <a href="javascript:;;;" >> onclick="this.style.behavior='url(#default#homepag e)'; >> this.setHomePage(location.href);"> >> >> But this code works for IE, not for Firefox. While running this code, >> the firefox shows javascript error as >> this.setHomePage is not a function >> >> Is there any javascript function available for both the browsers? > > 1) This is javascript > 2) Anybody who tries to force their choice of start pages on me dies. Wow! How do you manage that? I haven't seen a rash of mysterious deaths amongst webmasters worldwide...;-) |
![]() |
| Thread Tools | |
| Display Modes | |
|
|