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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anz

    #1

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

    I used the javascript functions as shown below.
    <a href="javascrip t:;;;"
    onclick="this.s tyle.behavior=' url(#default#ho mepage)';
    this.setHomePag e(location.href );">

    But this code works for IE, not for Firefox. While running this code,
    the firefox shows javascript error as
    this.setHomePag e is not a function


    Is there any javascript function available for both the browsers?
  • Rik Wasmus

    #2
    Re: How to set the default home page using php code in Firefox

    On Mon, 12 May 2008 12:48:58 +0200, Anz <anzbmuhammad@g mail.comwrote:
    I used the javascript functions as shown below.
    <a href="javascrip t:;;;"
    Which is bad form....
    onclick="this.s tyle.behavior=' url(#default#ho mepage)';
    this.setHomePag e(location.href );">
    >
    But this code works for IE, not for Firefox. While running this code,
    the firefox shows javascript error as
    this.setHomePag e is not a function
    >
    >
    Is there any javascript function available for both the browsers?
    Ask in comp.lang.javas cript, 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]

    Comment

    • Anz

      #3
      Re: How to set the default home page using php code in Firefox

      Sure, thanks

      Comment

      • Gordon

        #4
        Re: How to set the default home page using php code in Firefox

        On May 12, 11:48 am, Anz <anzbmuham...@g mail.comwrote:
        I used the javascript functions as shown below.
        <a href="javascrip t:;;;"
        onclick="this.s tyle.behavior=' url(#default#ho mepage)';
        this.setHomePag e(location.href );">
        >
        But this code works for IE, not for Firefox. While running this code,
        the firefox shows javascript error as
        this.setHomePag e 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.

        Comment

        • The Natural Philosopher

          #5
          Re: How to set the default home page using php code in Firefox

          Gordon wrote:
          On May 12, 11:48 am, Anz <anzbmuham...@g mail.comwrote:
          >I used the javascript functions as shown below.
          ><a href="javascrip t:;;;"
          >onclick="this. style.behavior= 'url(#default#h omepage)';
          >this.setHomePa ge(location.hre f);">
          >>
          >But this code works for IE, not for Firefox. While running this code,
          >the firefox shows javascript error as
          >this.setHomePa ge 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...;-)

          Comment

          Working...