•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 374,193 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,542 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 510 | Replies: 2 | Solved
![]() |
•
•
Join Date: Apr 2006
Posts: 7
Reputation:
Rep Power: 0
Solved Threads: 0
How can I link to another URL when my web page opens without clicking on "link"?
I'm just learning html and understand how to link using the anchor and href.
Example:
How can I get my webpage to open the link without having to have the "Click Here" present?
I'm just learning html and understand how to link using the anchor and href.
Example:
html Syntax (Toggle Plain Text)
<html> <body> <p> <a href="http://msm/com"> Click Here </a> </p> </body> </html>
How can I get my webpage to open the link without having to have the "Click Here" present?
Last edited by peter_budo : May 11th, 2008 at 12:46 pm. Reason: Keep It Organized - please use [code] tags
You can either use a refresh meta-tag or you can set window.location in javascript.
Here is the javascript solution:
Here is the REFRESH solution:
Here is the javascript solution:
<html> <head> <script type="text/javascript">window.location="http://msm.com";</script> </head> </html>
Here is the REFRESH solution:
<html>
<head>
<META http-equiv="refresh" content="1;URL=http://msm.com">
</head>
<body>
REDIRECTING YOU....
</body>
</html>![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- Anchoring problem in Firefox, it crops my browser after clicking the link (HTML and CSS)
- IE shuts down when clicking a link (Web Browsers)
- Navigation (Paging) in HTML table in VB.NET. (VB.NET)
- Drop down box won't shut off video on reverse in IE (JavaScript / DHTML / AJAX)
- Use of ASP, mailforms, & Dreamweaver (ASP)
- Error: Library not registered when clicking on link! (Web Browsers)
- vBulletin mod_rewrite for vB 3.0.7 (Existing Scripts)
- userint32.exe and aurora popups (Viruses, Spyware and other Nasties)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Can a table in HTML be floated as an element?
- Next Thread: Overlapping Layers Problem


Linear Mode