/    Sign up×
Community /Pin to ProfileBookmark

Make it your default homepage

<a href=”http:[url]www.xxxxxx.com[/url]” onClick=”this.style.behavior=’url#default#homepage)’;
this.setHomePage(‘http://www.11111.com‘);”

>

Make it your default home page</a>

I used this code to create a default homepage, but I do not want it to go anywhere after one created the default homepage.

I am stuck with a href code because I do not know how I can get around ‘onclick’ code without using a href or button.

I would like to use the text “[U]Make it your default homepage[/U] ” in text to create a default homepage and that it will not go anywhere after that.

Many thanks in advance.

Jim

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@NedalsMar 18.2003 — Try this..

<a href="http:www.xxxxxx.com" onClick="this.style.behavior='url#default#homepage)';

this.setHomePage('http://www.11111.com'); [b]return false[/b]">
Copy linkTweet thisAlerts:
@CowboyauthorMar 18.2003 — 'Return false' code is not working...
Copy linkTweet thisAlerts:
@AdamGundryMar 18.2003 — This, I think...

<a href="#" onClick="this.setHomePage('http://www.example.com');"
>Make it your default home page</a>

Adam
Copy linkTweet thisAlerts:
@CowboyauthorMar 18.2003 — It works with "#".

Thanks, Adam and Nedals.

Jim
×

Success!

Help @Cowboy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...