473,395 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

Anz
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?
Jun 2 '08 #1
4 4034
On Mon, 12 May 2008 12:48:58 +0200, Anz <an**********@gmail.comwrote:
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]
Jun 2 '08 #2
Anz
Sure, thanks
Jun 2 '08 #3
On May 12, 11:48 am, Anz <anzbmuham...@gmail.comwrote:
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.
Jun 2 '08 #4
Gordon wrote:
On May 12, 11:48 am, Anz <anzbmuham...@gmail.comwrote:
>I used the javascript functions as shown below.
<a href="javascript:;;;"
onclick="this.style.behavior='url(#default#homepa ge)';
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...;-)
Jun 2 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
by: Alex Panayotopoulos | last post by:
Hello all, Maybe I'm being foolish, but I just don't understand why the following code behaves as it does: - = - = - = - class listHolder: def __init__( self, myList= ): self.myList =...
6
by: The Bicycling Guitarist | last post by:
When I reduce the width of the window of my home page, Firefox makes the <h1> and other text and buttons go UNDERNEATH the graphic in the middle of the page. However yukky Microsoft Internet...
2
by: Goober | last post by:
I have the following default.aspx page that works properly. However, what I want to do is to link the graphics within it (that are hard coded now in the default web page) to our corporate...
8
by: Alan J. Flavell | last post by:
What I was trying to do: to offer a default stylesheet, plus another small stylesheet which can be applied additionally to the default one. Preferably, the optional stylesheet should be initially...
74
by: Zytan | last post by:
I have a struct constructor to initialize all of my private (or public readonly) fields. There still exists the default constructor that sets them all to zero. Is there a way to remove the...
2
by: pavi | last post by:
Anyone know how to set the Default homepage using javascript without prompting a pop up. Below is the code i used to set default home page. <a href="#"...
3
by: goldenv | last post by:
Hi all, I have worked an open source javascript + html page that has the potential to replace your existing browser home page. If you are interested in trying it out, or learning more about it, it...
7
by: Anz | last post by:
I used the javascript functions as shown below. <a href="javascript:;;;" onclick="this.style.behavior='url(#default#homepage)'; this.setHomePage(location.href);"> But this code works for IE,...
3
by: Anz | last post by:
Is there any javascript function available to set the default home page which would work properly in firefox ?, I didn't find any javascript function which will work on firefox, If there any?
6
tpgames
by: tpgames | last post by:
I'm trying to get a maze to default to always giving me the image as the marker and never give me the color as the marker. The code requires you to check a box to get the image marker to be used. So,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.