Solved

Triggering a Script in HTML

Posted on 2009-07-01
2
157 Views
Last Modified: 2013-11-19
Hello,

I am totaly new to HTML.
1. I built few pages. On one page I have a button, I want to add an event that when I click this button another page opens.
I know I need to use OnClick event but how to add a link to another page?

2. And where can I find examples for how to do such things?  like windows.status="  "...

THANKS
0
Comment
Question by:margarit
2 Comments
 
LVL 5

Accepted Solution

by:
OrionsX earned 250 total points
Comment Utility
One way to link to a URL is
<input type=button onClick="location.href='index.html'" value='click here'>

As far as examples go you can try looking at the pages below as well as their associated pages
www.htmlcodetutorial.com/.../linking_famsupp_126.html
www.webdesign.org/web/web.../window-status.11127.html
www.w3schools.com/htmldom/prop_win_status.asp

0
 
LVL 5

Assisted Solution

by:Opalelement
Opalelement earned 250 total points
Comment Utility
onclick uses Javascript which can be disabled in the user's browser and is sometimes hard to use...

HTML has a built in way to go to a different page. The Anchor tag <a> is a link.

<a href="http://google.com">this is link txt</a>

The above will show you "this is link txt", and when you click on it you will be taken to http://google.com

http://www.tizag.com/htmlT/links.php
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now