How to set the default home page using php code in Firefox

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(#...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-12-2008
Anz
 
Posts: n/a
Default How to set the default home page using php code in Firefox

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?
Reply With Quote
  #2 (permalink)  
Old 05-12-2008
Rik Wasmus
 
Posts: n/a
Default Re: How to set the default home page using php code in Firefox

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]
Reply With Quote
  #3 (permalink)  
Old 05-12-2008
Anz
 
Posts: n/a
Default Re: How to set the default home page using php code in Firefox

Sure, thanks
Reply With Quote
  #4 (permalink)  
Old 05-12-2008
Gordon
 
Posts: n/a
Default Re: How to set the default home page using php code in Firefox

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.
Reply With Quote
  #5 (permalink)  
Old 05-12-2008
The Natural Philosopher
 
Posts: n/a
Default Re: How to set the default home page using php code in Firefox

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...;-)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:28 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0