Add Javascript to Push Button Hyperlink FP2002

S

SierraTech

In FrontPage 2000 I use to link a web page URL to a button as follws:

1) Insert Button

2) Check "Send to Other"

3) Make sure "Custom ISAPI, NSAPI, CGI or ASP Script" is selected

4) Press "Options" and Set Method to "POST"

5) Insert JavaScript next to the button as shown below:

function jumptoInfo() {

location.href = "http://www.url/page.htm";

}



I cannot seem to do this in Frontpage 2002. I tried insert HTML and added
javascript tags as follows:

<Script language=" JavaScript" >
function jumptoInfo() {

location.href = "http://www.url/page.htm ";

}
</script>

Which hides the javascript but still no action.



In FP98 I had to do the following:



1) Insert PushButton Object

2) 2-Click PushButton Form Field Prop

3) Select Normal, Change Name (optional)

4) Change Label

5) Click Extended & "ADD"

6) Define attribute as "onClick"

7) Enter a Value (use name of the function in script ["jumptoInfo(this)"]

8) Click "OK" on all boxes

9) Advance cursor right of button

10) Click "Insert Script" Select JavaScricpt

11) Define the function, use the same name declared in the PushButton Form
Field Prop.

12) define URL with "location.href"

13) Script should look like this:

function jumptoInfo() {

location.href = "http://www.url/page.htm";

}



What is the procedure for doing this in FP 2002 (apparently I haven't tried
this in Frontpage 2002 because it doesn't work).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top