Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-22-2013, 01:40 AM   PM User | #1
brookfloyd
New Coder

 
Join Date: Jan 2013
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
brookfloyd is an unknown quantity at this point
Change a url on my home page...

Hello,

I am fairly new (let's say a novice) with javascript. I have, what I think is an easy task, in making a url on my home page turn into a different url when clicked. Right now the url is delivered to the page as http://www.mixnob.com/defaul.html and am wanting it to just change to be a link to my home page http://www.mixnob.com.

The original link can't be changed as it is being created dynamically. So I figured javascript could solve the issue. I'm just a little unclear on how to do it. I have read up on many options for changing something in dom to become something else, but don't know the actual code to accomplish it.

Any help would be appreciated.
brookfloyd is offline   Reply With Quote
Old 01-22-2013, 02:15 PM   PM User | #2
WolfShade
Regular Coder

 
Join Date: Apr 2012
Location: St. Louis, MO, USA
Posts: 960
Thanks: 7
Thanked 100 Times in 100 Posts
WolfShade is an unknown quantity at this point
It's not a scripting issue. Whichever web server you're using (IIS, Apache, etc.) needs to be told that "default.html" or whatever document (index.html, home.html, etc.) is a "default document" so that when a URL without a doc name is searched, that file will be pulled up.
__________________
^_^

If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
*
The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".
WolfShade is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:48 AM.


Advertisement
Log in to turn off these ads.